Comments (6)
I have no idea what Zurb foundation's clearing gallery is. If you could
provide a URL for an example of your problem I might be able to help...
On 26 Nov 2012 16:14, "sampaccoud" [email protected] wrote:
I'm trying to use jquery.event.move.js v1.3.1 with Zurb Foundation's
Clearing gallery, but when the plugin is in place, the scroll bar is
inoperable in Chrome...β
Reply to this email directly or view it on GitHubhttps://github.com//issues/8.
from jquery.event.move.
The problem was solved on Foundation Clearing by activating the swipe plugin only for touch screens (foundation/foundation-sites#1145)
...but it means the real remains within the plugin ?
from jquery.event.move.
It is perfectly normal that move cancels scroll, as it is assumed that you don't want to both move something and scroll something at the same time.
If you want to cancel a move, and thus have scroll work normally, then you can call e.preventDefault() in the movestart handler. If you want to enable scrolling in the vertical direction, but swiping in the horizontal, then you need to call e.preventDefault() conditionally, depending on which direction the user has started moving in movestart.
from jquery.event.move.
Dammit, I just compiled a perfect test case before bothering to look if anyone has asked this :(
Anyway, thanks for suggesting a workaround, but I have to disagree with you on that. The preventDefault() method is supposed to suppress the browser's default reaction to the event, not to 'unsupress' it.
Otherwise, this library is a lifesaver if you just want to implement a handful of simple touch events (I tried quo, but it had cross-browser issues, and hammer, but it was kind of slow). Thanks a lot for your hard work :)
from jquery.event.move.
Yes, preventDefault() is supposed to suppress the browser's default
reaction to a native browser event. But here we are not talking about the
native scroll event, we are talking about the move event. The default
reaction to the move event is to suppress scroll and listen to the movement
of the finger. I deliberately designed it to work this way.
If you look inside the move event, you'll see it's using jQuery's
event.special._default property, which allows us to give special events a
default behaviour - almost as if we are extending the native browser event
behaviours. So this is the way it is designed - as if it has default
behaviour, that you may suppress with preventDefault(), as if it were a
native event.
Thanks for the kind comments, it's great to hear it measures up to the
competition :)
On 28 October 2013 17:01, Septagram [email protected] wrote:
Dammit, I just compiled a perfect test casehttp://pumpkintime.org/default-failbefore bothering to look if anyone has asked this :(
Anyway, thanks for suggesting a workaround, but I have to disagree with
you on that. The preventDefault() method is supposed to suppress the
browser's default reaction to the event, not to 'unsupress' it.Otherwise, this library is a lifesaver if you just want to implement a
handful of simple touch events (I tried quo, but it had cross-browser
issues, and hammer, but it was kind of slow). Thanks a lot for your hard
work :)β
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-27224951
.
from jquery.event.move.
Thanks for the kind comments, it's great to hear it measures up to the competition :)
Are you kidding? In many ways it's waaay better than the competition. π
from jquery.event.move.
Related Issues (20)
- Firefox Mobile
- CanΒ΄t use moveend on body and expect document scrolling to work on mobile devices. HOT 4
- Use with webpack HOT 2
- Need 'movestart' on pointerdown HOT 5
- jQuery 3.0.0 breaks jQuery.event.props usage HOT 8
- move delay in mobile HOT 2
- for ... of statements break Uglify JS2 and all but the latest browers HOT 4
- Doesn't work in android stock browser 4.4.2 HOT 1
- release 2.0.0 HOT 5
- minification fails because of es6 features HOT 2
- ES6 Symbol breaks < IE Edge HOT 5
- Chrome treats document-level touch event listeners as passive by default HOT 4
- Cannot read property 'toLowerCase' of undefined
- NPM/Yarn doesn't install version 2 but always 1.3.6 HOT 2
- velocityX/Y is NaN
- Inner scroll won't work on iOS unless I remove preventDefault
- Versions 2.0.0+ broke vertical scroll in Edge Mobile
- Can't scroll over input
- Versions 2.0.0+ when add e.stopPropagation() in movestart envent is canot work
- Vulnerability checks failing on js/jquery-3.1.1.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.event.move.