<?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>233417</bug_id>
          
          <creation_ts>2021-11-22 02:40:01 -0800</creation_ts>
          <short_desc>touch-action doesn&apos;t prevent the Safari UI from collapsing</short_desc>
          <delta_ts>2022-10-21 01:38:03 -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 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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="Matt Perry">mattgperry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>augus.dupin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>h.dodov</cc>
    
    <cc>ik</cc>
    
    <cc>mattgperry</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tsmd57</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817258</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Perry">mattgperry</who>
    <bug_when>2021-11-22 02:40:01 -0800</bug_when>
    <thetext>https://q0j97.csb.app/

Steps to reproduce:

Scroll the page by initiating touch gesture from the green background. Page scrolls, this is expected. Scroll until the address bar disappears.

White box has &quot;touch-action: pan-x&quot; applied. Initiate touch gesture from the white box. Page does not scroll, this is expected.

Attempt to scroll down from white box. Page does not scroll but address bar *does* expand. This is not expected.

This breaks non-native drag gesture implementations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1817272</commentid>
    <comment_count>1</comment_count>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2021-11-22 05:38:08 -0800</bug_when>
    <thetext>This also happens with (native) horizontal scroll containers.

It would also be great to have a way to prevent this on vertical scroll/pan-y, as it is not always desirable. This library, for instance, is broken because the viewport gets resized as a picture is being swiped up or down: https://photoswipe.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818166</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-29 02:40:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/85805111&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836560</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-02-02 11:51:11 -0800</bug_when>
    <thetext>This is controlled by MobileSafari code. The above radar tracks that issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1862040</commentid>
    <comment_count>4</comment_count>
    <who name="Hristiyan Dodov">h.dodov</who>
    <bug_when>2022-04-16 03:06:41 -0700</bug_when>
    <thetext>I recently ran into this issue as well. In case more info is required, here&apos;s a Stack Overflow question:

https://stackoverflow.com/questions/71717565/prevent-ios-safari-from-animating-its-address-bar-when-touch-action-none-is-used

Also a reproduction site:

https://safari-touch-action-bug.netlify.app/

And a demo video of the problem:

https://www.youtube.com/shorts/RJAQp4YO4gg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866167</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-05-03 10:03:09 -0700</bug_when>
    <thetext>rdar://86966949</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868740</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-05-13 06:35:13 -0700</bug_when>
    <thetext>This is being addressed within Safari, not WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879442</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-06-30 10:54:18 -0700</bug_when>
    <thetext>We believe that this bug was fixed in the iOS 16.0 Beta 1 (and newer).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907257</commentid>
    <comment_count>8</comment_count>
    <who name="Hristiyan Dodov">h.dodov</who>
    <bug_when>2022-10-21 01:38:03 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #7)
&gt; We believe that this bug was fixed in the iOS 16.0 Beta 1 (and newer).

I just tested on iOS 16.0.3 (20A392) and the issue is fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>