Comments (6)
Can you test the src/sly.js version, and how does it work for you?
It has some fixes regarding this issue, but I'm not sure whether it is without side effects (I don't have any device to test it on), so it is not in the distribution version yet.
from sly.
With this version tap works fine as click. But now I have problems with drag scroll in horizontal lists.
You can emulate touch events to try with the Chrome Developer Tools:
Thanks for reply so quick! ;)
from sly.
When you say problems with drag scroll, what exactly do you mean? And are you testing on some device, or only with Chrome's touch emulation?
I know about that, but that can get you only so far. It is just a very basic emulation, and mostly irrelevant if you need to test touch events and everything associated to them (page scrolling, clicks/taps, swipes,...).
Chrome's touch events emulation is really not enough. Definitely not for testing Sly.
from sly.
Tested on Nexus 7 (4.2.2) sometimes the drag event doesn't respond.
Tested on iPad (iOS 6) the list doesn't move because the entire page tries to scroll in vertical mode.
I know that Chrome has its limitations with touch event emulation, but Chrome Canary has better support than previous versions and sometimes helps when you don't have a real device near.
Thanks.
from sly.
In recent commits I've overhauled the dragging initiation to make it a lot more responsive. This change also includes a lot lowered "path to definite initiation", which is path after which Sly cancels, or completely takes over dragging and disables click caused on touchend
. This path is now 5 pixels, and probably needs to be tweaked for touch devices.
What is actually happening: When you touchstart
and move, at the point when you've reached pathToLock
destination (currently 5 pixels) Sly determines whether you are dragging in the same direction as Sly (horizontal/vertical). If you are, Sly disables next click. If you are not, Sly cancels dragging and lets browser handle all touch events.
Path of 5 pixels might be extremely low on touch devices, as tapping while unintentionally moving a finger a little might actually cause 5px touchmove, so it should be tested. If there is too much of incorrect determinations (click disabled on tapping), it has to be bumped up.
The development version with changes is in src/sly.js
.
The pathToLock
can be tweaked on line 102.
from sly.
Merging this issue into #27
from sly.
Related Issues (20)
- One per frame last item breaks depending on OS HOT 1
- MacBook Trackpad scroll
- vertical-align elements
- no Event object on callback called as onActivate handler
- horizontal scroll on android chrome acting in funny way
- active class doesn't change when dragging or touch-dragging
- moveBy cause error in ie8
- append (add) new items in top instead of bottom? (vertical mode) HOT 1
- "scrollBy: 1" scrolls too many items on high res laptop screen
- Set custom position of translateX() in horizontal - not to snap to 1/2nd slide
- How the slider width is detected? How can I increase it? HOT 1
- startAt active item: how to do it?
- Hi, darsain sly I'm moving to more framework support
- moveEnd event occurs twice
- How sly pure library javascript?
- How to add big left and right arrows between the carousel?
- How to change the start Position?
- Auto hide scrollbar HOT 3
- Problem numbers pagesBar with pageBuilder
- trouble calculating the width of the <ul> tag.
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 sly.