Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4678

mobile touch-drag window causing console errors

XMLWordPrintable

    • ZK 9.5.1 S1
    • None

      Steps to Reproduce

      drag a modal window on a touch device or mobile emulation in chrome

      Current Result

      js errors in the console

      [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
      stop @ zk.wpd:727
      u @ zk.wpd:360
      l @ zk.wpd:718
      dispatch @ zk.wpd:145
      m.handle @ zk.wpd:141
      

      by the same cause, it is possible to reload the page by dragging down the modal window on android chrome

      Expected Result

      no errors, page not reloading when dragging a modal window down

      Debug Information

      https://github.com/zkoss/zk/blob/v9.5.0.2/zk/src/archive/web/js/zk/domtouch.js#L345

      Workaround

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h