Comments (5)
Thanks. That does look a bit suspect. I'll look into it.
On 15 Apr 2013 14:46, "Antoine Louatron" [email protected] wrote:
Hi,
after playing a little with your plugin, I found what seems a bug.
Here is an output of some Chrome logging :This is just a copy of some consecutive move event properties.
Object {delta: 0, y: 680, start: 686, dist: -6} Object {delta: -1, y: 679, start: 686, dist: -7} Object {delta: -1, y: 664, start: 686, dist: -22} Object {delta: -7, y: 656, start: 686, dist: -30} Object {delta: -7, y: 648, start: 686, dist: -38} Object {delta: -6, y: 641, start: 686, dist: -45} Object {delta: -1, y: 635, start: 686, dist: -51}
deltaY is not coherent with other values. When I used it, animation was
always slower than cursor movement.
I switch my moving animation to distY and everything is ok.Thanks for your job !
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/15
.
from jquery.event.move.
I can confirm this issue as well with latest code from master. Is this library being maintained? I see the last comment is 6 months ago as of this posting.
from jquery.event.move.
Yes, it is being maintained.
Those logs in the original bug report are a little ambiguous what properties he's looking at, but I've had a look and can't reproduce the problem.
If you pull the latest, you'll see I've added a test for deltaX and deltaY in index.html, lines 338 - 362. Load the page in a browser and move the red box and you should see a series of logs reading:
true, true, true, true
It's working perfectly well as far as I can see. The question is, what's happening on your page that is different to this test? If you could provide a reduced test case on jsfiddle or jsbin or a branch of this repo, that would be very helpful.
from jquery.event.move.
Hmm, on the other hand, that test is throwing up some inconsistencies on the iPad...
from jquery.event.move.
Fixed 82ea750
Delta was being calculated from the latest mouse or touch event position, rather than the latest move event position (which updates at the browser frame rate).
Thanks for the reminder @foxbunny, apologies @antoinelouatron for taking so long.
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.