Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dd] Prevent default on gesturemovestart after movement has started. #1761

Closed
wants to merge 1 commit into from

Conversation

andrewnicols
Copy link
Contributor

gesturemovestart is actually triggered on touchstart/mousedown rather
than on the start of movement. It then throttles down based on a mintime or
min movement. We therefore need to move the preventDefault down to the
function it throttles otherwise we prevent on mousedown of non-dragged
object too.

gesturemovestart is actually triggered on gesturestart/mousedown rather
than on the start of movement. It then throttles down based on a mintime or
min movement. We therefore need to move the preventDefault down to the
function it throttles otherwise we prevent on mousedown of non-dragged
object too.
@yahoocla
Copy link

yahoocla commented Apr 8, 2014

CLA is valid!

@andrewnicols
Copy link
Contributor Author

Fixes #1757

@tilomitra tilomitra added this to the Sprint 13 milestone Apr 8, 2014
@tilomitra tilomitra self-assigned this Apr 8, 2014
@tilomitra
Copy link
Contributor

This looks like the correct fix. Verified on my end. I tested this on the IEs and it checks out:

  • IE6
  • IE7
  • IE8
  • IE9
  • IE10

Also, @andrewnicols has tested this on

iOS 6.1 Safari
iOS 7.0.3 Safari
iOS 7.1 Chrome + Safari
Mac Safari (without touchscreen emulation)
Mac Chrome (without touchscreen emulation)
Android 2.1 stock browser (Using AVD emulator)
Android 4.4.2 stock browser (Using AVD emulator)

@tilomitra
Copy link
Contributor

Reviewers, please take a look at this. 🔔 @caridy, @ericf.

@triptych
Copy link
Contributor

triptych commented Apr 8, 2014

Be sure you push this to the release branch once it's approved.

@ericf
Copy link
Member

ericf commented Apr 8, 2014

Looks good. Feel free to get this into the release branch.

@tilomitra
Copy link
Contributor

Pushed to release-3.16.0 branch. It will be merged back into dev-3.x. Thanks again @andrewnicols!

@tilomitra tilomitra closed this Apr 8, 2014
@triptych
Copy link
Contributor

triptych commented Apr 8, 2014

I updated the HISTORY.md as well with this fix.

@andrewnicols
Copy link
Contributor Author

@tilomitra Here's the basic testcase I used: https://gist.github.com/10214424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants