<?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>137313</bug_id>
          
          <creation_ts>2014-10-01 14:17:20 -0700</creation_ts>
          <short_desc>Touchmove events do not bubble correctly when container has translate or translate3d applied to it</short_desc>
          <delta_ts>2024-05-27 10:39:27 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=237470</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=274654</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ted Tate">tedtate</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>kpeatt</cc>
    
    <cc>stewart</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1038649</commentid>
    <comment_count>0</comment_count>
      <attachid>239049</attachid>
    <who name="Ted Tate">tedtate</who>
    <bug_when>2014-10-01 14:17:20 -0700</bug_when>
    <thetext>Created attachment 239049
Example html file which demonstrates the issue.

Hello all,

I&apos;ve found an issue on the version of WebKit currently shipping in iOS 8 that seems to cause touchmove events not to bubble when they are inside of containers that have -webkit-transform: translate or translate3d applied.

The issue does not occur on iOS7 or other previous version. I&apos;m unsure of how to test this in WebKit nightly build due to this issue seeming to only manifest itself with touchmove events specifically.

This issue is causing problems with sites that use both the ucarousel and scooch carousel plugins.

----

Steps to Reproduce:

1) Open attached minimal test case HTML either on iOS 8 device or iOS 8 simulator
2) Cause some touchmove events to fire by touching on the cats inside of the fake &apos;carousel&apos;, notice the touchmove counter increasing.
3) Press the &apos;apply translate3d(-900px, 0px, 0px) to .inner button
4) Attempt to cause some more touch move events on the carousel.

Result:

The touchmove counter no longer increases after &apos;-webkit-transform: translate3d(-900px, 0px, 0px)&apos; is applied to &apos;.inner&apos; element.

Expected Results:

The touchmove events should continue to fire.

----

Workarounds:

Currently there are two workarounds that I know of to fix this issue.

1) Bind an empty handler to an element in the bubbling chain between the source of the touch move and &apos;.inner&apos;. If you press &apos;enable fix&apos; in the attached test case this is what is enabled.

items.on(&apos;touchmove&apos;, function(e) {
    return true;
});

2) Add the following CSS to one of the elements in the bubbling chain:

.item { -webkit-transform: translate(0); transform: translate(0); }

----

Additional Resources:

1) Bug Reports:

https://github.com/mobify/scooch/issues/23
https://github.com/nrsedat/uCarousel/issues/1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1038660</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-10-01 14:45:01 -0700</bug_when>
    <thetext>Thanks for filing a bug report.

I am adding to my touch event bug list. What is the impact? Do you know any website affected by this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1038669</commentid>
    <comment_count>2</comment_count>
    <who name="Ted Tate">tedtate</who>
    <bug_when>2014-10-01 15:01:48 -0700</bug_when>
    <thetext>Currently affected sites:

http://www.sharperimage.com/
http://www.perfumania.com/
http://www.tommybahama.com/ (this one is slightly less obvious due to the auto-advancing, but it should be swipeable)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1038671</commentid>
    <comment_count>3</comment_count>
    <who name="Ted Tate">tedtate</who>
    <bug_when>2014-10-01 15:08:37 -0700</bug_when>
    <thetext>A couple more:

www.golfdigest.com (Photos carousel at the bottom of the page)
www.wired.com</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>239049</attachid>
            <date>2014-10-01 14:17:20 -0700</date>
            <delta_ts>2014-10-01 14:17:20 -0700</delta_ts>
            <desc>Example html file which demonstrates the issue.</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>3023</size>
            <attacher name="Ted Tate">tedtate</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxlPjwvdGl0bGU+
CiAgICAgICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0
aCxpbml0aWFsLXNjYWxlPTEsbWF4aW11bS1zY2FsZT0xLHVzZXItc2NhbGFibGU9bm8iPgogICAg
ICAgIDxzdHlsZT4KICAgICAgICAgICAgLmNvbnRhaW5lciAgewogICAgICAgICAgICAgICAgcG9z
aXRpb246ICByZWxhdGl2ZTsKICAgICAgICAgICAgICAgIG92ZXJmbG93OiAgaGlkZGVuOwogICAg
ICAgICAgICB9CgogICAgICAgICAgICAuaW5uZXIgewogICAgICAgICAgICAgICAgcG9zaXRpb246
ICByZWxhdGl2ZTsKICAgICAgICAgICAgICAgIHdoaXRlLXNwYWNlOiAgbm93cmFwOwogICAgICAg
ICAgICAgICAgdGV4dC1hbGlnbjogIGxlZnQ7CgoKICAgICAgICAgICAgICAgIC13ZWJraXQtdHJh
bnNpdGlvbi1wcm9wZXJ0eTogIC13ZWJraXQtdHJhbnNmb3JtOwogICAgICAgICAgICAgICAgLW1v
ei10cmFuc2l0aW9uLXByb3BlcnR5OiAgLW1vei10cmFuc2Zvcm07CiAgICAgICAgICAgICAgICAt
bXMtdHJhbnNpdGlvbi1wcm9wZXJ0eTogIC1tcy10cmFuc2Zvcm07CiAgICAgICAgICAgICAgICAt
by10cmFuc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dGVtJyk7CiAgICAgICAgICAgIHZhciBhcHBseVRyYW5zbGF0ZSA9ICQoJy5h
cHBseS10cmFuc2xhdGUnKTsKICAgICAgICAgICAgdmFyIHRyaWdnZXJGaXggPSAkKCcudHJpZ2dl
ci1maXgnKTsKICAgICAgICAgICAgdmFyIGNvdW50ZXIgPSAkKCcudG91Y2htb3ZlLWNvdW50ZXIn
KTsKICAgICAgICAgICAgdmFyIGNvdW50ID0gMDsKCiAgICAgICAgICAgIGlubmVyLm9uKCd0b3Vj
aG1vdmUnLCBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICBjb3VudCArPSAxOwogICAgICAg
ICAgICAgICAgY291bnRlci5odG1sKGNvdW50KTsKICAgICAgICAgICAgfSk7CgogICAgICAgICAg
ICB0cmlnZ2VyRml4Lm9uKCdjbGljaycsIGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgICAgIGl0
ZW1zLm9uKCd0b3VjaG1vdmUnLCBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0
dXJuIHRydWU7CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfSk7CgogICAgICAgICAg
ICBhcHBseVRyYW5zbGF0ZS5vbignY2xpY2snLCBmdW5jdGlvbihlKSB7CiAgICAgICAgICAgICAg
ICB2YXIgY3NzUHJvcCA9ICctd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlM2QoLTkwMHB4LCAw
cHgsIDBweCknOwogICAgICAgICAgICAgICAgJCgnLmlubmVyJykuYXR0cignc3R5bGUnLCBjc3NQ
cm9wKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgPC9zY3JpcHQ+CiAgICA8L2JvZHk+CjwvaHRt
bD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>