<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>184251</bug_id>
          
          <creation_ts>2018-04-02 17:48:24 -0700</creation_ts>
          <short_desc>touchmove bound to the document during a touchstart listener is not cancelable (default cannot be prevented)</short_desc>
          <delta_ts>2023-05-04 13:30:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari 11</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anand Thakker">anand.thakker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>a_protyasha</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bugs.webkit.org</cc>
    
    <cc>cdumez</cc>
    
    <cc>david.jerleke</cc>
    
    <cc>dino</cc>
    
    <cc>herr.ernst</cc>
    
    <cc>john.firebaugh</cc>
    
    <cc>mansing.choy</cc>
    
    <cc>oliverzy</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>toby</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1411322</commentid>
    <comment_count>0</comment_count>
    <who name="Anand Thakker">anand.thakker</who>
    <bug_when>2018-04-02 17:48:24 -0700</bug_when>
    <thetext>Tested on: iOS 11.2.6, 11.3

Steps to reproduce:
1. Create a script that:
 - Adds a `touchstart` listener, `onStart`, to some div `myDiv`.
 - In `onStart`, add a `touchmove` listener, `onMove`, (with `{passive: false}`) to `document`.
 - In `onMove(e)`, call `e.preventDefault()`.
2. Load the page in iOS 11.2.6 or 11.3 and attempt a scroll from within `myDiv`.

Expected result: the page does not scroll.
Actual result: the page scrolls.

Self-contained example: https://gist.github.com/anandthakker/2d0e71924285a845f0c4e6c5fd966234</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411328</commentid>
    <comment_count>1</comment_count>
    <who name="Anand Thakker">anand.thakker</who>
    <bug_when>2018-04-02 17:59:07 -0700</bug_when>
    <thetext>It&apos;s worth noting that this issue arises amidst an attempt to mitigate the breaking change discussed in https://bugs.webkit.org/show_bug.cgi?id=182521.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411450</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-04-03 10:26:59 -0700</bug_when>
    <thetext>&lt;rdar://problem/39145024&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1443307</commentid>
    <comment_count>3</comment_count>
    <who name="Toby Rahilly">toby</who>
    <bug_when>2018-07-18 23:43:27 -0700</bug_when>
    <thetext>Experiencing the same issue on iOS 11.4.1

Full user agent: Mozilla/5.0 (iPad; CPU OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1

Two workarounds:

1) Register a passive event listener on any non-window/document/body element that the event will bubble though.
2) Register the touchmove event listener outside of the touchstart.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1443360</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-07-19 08:40:04 -0700</bug_when>
    <thetext>3) register the listener with { passive: false }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1443363</commentid>
    <comment_count>5</comment_count>
    <who name="Toby Rahilly">toby</who>
    <bug_when>2018-07-19 08:44:41 -0700</bug_when>
    <thetext>Hi Simon, the touchmove listener is registered with { passive: false } but unfortunately still experiences the behaviour described in this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1443632</commentid>
    <comment_count>6</comment_count>
    <who name="Toby Rahilly">toby</who>
    <bug_when>2018-07-19 18:10:39 -0700</bug_when>
    <thetext>I also tried registering the touchstart event with {passive: false}, but it didn&apos;t fix the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503330</commentid>
    <comment_count>7</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:19:11 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898020</commentid>
    <comment_count>8</comment_count>
      <attachid>462297</attachid>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-12 14:51:13 -0700</bug_when>
    <thetext>Created attachment 462297
Testcase (from GitHub with DOCTYPE)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898023</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-12 14:53:15 -0700</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 16 on iPhone 13 Pro Max (iOS 16) and not able to scroll the page from the body in light green hue area.

Appreciate if someone else can confirm as well because I am not too sure on my testing with this test case. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952980</commentid>
    <comment_count>10</comment_count>
    <who name="David">david.jerleke</who>
    <bug_when>2023-05-04 12:55:21 -0700</bug_when>
    <thetext>Experiencing the same problem on iOS 16.4.1.

If I try to scroll the page on the light green area, the page scrolls but only sometimes. It’s inconsistent in other words.

The easiest way for me to reproduce the bug was to repeatedly do swipe gestures in one direction inside the green area. Eventually, one of the swipe gestures will scroll the page even though it shouldn’t.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462297</attachid>
            <date>2022-09-12 14:51:13 -0700</date>
            <delta_ts>2022-09-12 14:51:13 -0700</delta_ts>
            <desc>Testcase (from GitHub with DOCTYPE)</desc>
            <filename>Test Case - Webkit 184251.html</filename>
            <type>text/html</type>
            <size>2530</size>
            <attacher name="Ahmad Saleem">ahmad.saleem792</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPG1ldGEgbmFtZT0idmll
d3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAg
IDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIDxkaXYgaWQ9IndpZGdldCIgc3R5bGU9IndpZHRo
OiAxMDAlOyBoZWlnaHQ6IDMwMHB4OyBiYWNrZ3JvdW5kLWNvbG9yOiAjYWFjY2NjIj5JdCBzaG91
bGQgbm90IGJlIHBvc3NpYmxlIHRvIGluaXRpYXRlIGEgcGFnZSBzY3JvbGwgZnJvbSB3aXRoaW4g
dGhpcyBlbGVtZW50PC9kaXY+CiAgICAgICAgPGRpdiBzdHlsZT0id2lkdGg6IDEwMCU7IGhlaWdo
dDogNTBweDsgYmFja2dyb3VuZC1jb2xvcjogI2NjYyI+PC9kaXY+CiAgICAgICAgPGRpdiBzdHls
ZT0id2lkdGg6IDEwMCU7IGhlaWdodDogNTBweDsgYmFja2dyb3VuZC1jb2xvcjogI2ZmZiI+PC9k
aXY+CiAgICAgICAgPGRpdiBzdHlsZT0id2lkdGg6IDEwMCU7IGhlaWdodDogNTBweDsgYmFja2dy
b3VuZC1jb2xvcjogI2NjYyI+PC9kaXY+CiAgICAgICAgPGRpdiBzdHlsZT0id2lkdGg6IDEwMCU7
IGhlaWdodDogNTBweDsgYmFja2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AgICAgICAvLyAgICAgY29uc29sZS5sb2coJ2RpdiB0b3VjaG1vdmUgLSBwYXNzaXZl
OiBmYWxzZScpCiAgICAgICAgICAgIC8vIH0sIHtwYXNzaXZlOiBmYWxzZX0pOwoKICAgICAgICAg
ICAgLy8gb3IgZWxzZSBjYWxsIGBiaW5kRG9jdW1lbnRIYW5kbGVycygpYCBkaXJlY3RseSAoaW5z
dGVhZCBvZgogICAgICAgICAgICAvLyB3aXRoaW4gdGhlIHRvdWNoc3RhcnQgaGFuZGxlciBhYm92
ZToKCiAgICAgICAgICAgIC8vIGJpbmREb2N1bWVudEhhbmRsZXIoKTsKICAgICAgICA8L3Njcmlw
dD4KICAgIDwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>