Comments (5)
I see nothing wrong with that! Do you think there is a better way to check for that?
from snap.js.
I guess your right, maybe just add e.touches.length
just in case touches doesn't exist.
cache.startDragX = utils.hasTouch && e && e.touches.length && e.touches[0] ? e.touches[0].pageX : e.pageX;
from snap.js.
Fixed. Got rid of the single check for e
because there is always an event object passed with event functions.
Thanks!
from snap.js.
@jakiestfu I think you forgot this one as well
https://github.com/jakiestfu/Snap.js/blob/master/snap.js#L367
from snap.js.
@pgherveou Thanks, fixed in 1.7.1 fe2aed1
from snap.js.
Related Issues (20)
- how to fixed this bug ?
- Is there a NPM module available for Snap.js ? HOT 4
- heading having issue being fixed positioning in ie10. HOT 1
- tapToClose does not prevent the menu from being close when set to 'false'
- Broken on Chrome's devtools mobile device emulator HOT 1
- How to work with bootstrap 3 ? HOT 1
- Keep content size while snapping
- How to have menu open on page load? HOT 1
- "dir = rtl " breaks the right drawer? HOT 1
- Snap is not closing in Windows 10, Browser ie11
- snapper.trigger('start');
- New Maintainers HOT 1
- Adding bootstrap dropdown box
- Jumpping bug in modal when button have position: relative
- Demo breaks if you move over the sidebar
- How do I prevent triggering menu open when scrolling on certain element. HOT 1
- Is this going to be updated? HOT 4
- Disable dragging effect on desktop HOT 1
- Make sticky?
- Is it a typo ? shelfs versus shelves
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 snap.js.