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

Prevent updating position without target #38

Merged
merged 1 commit into from
Feb 27, 2015

Conversation

henrikhermansen
Copy link
Contributor

When scrolling a list on mobile, Slip attempts to update positions even
though no element is grabbed. That's problematic, as we have no target
object, so let's just not do that. This fixes #32 . No hard feelings if you deem this solution too hacky, and don't accept it. There might be more appropriate places to stop this behaviour, but this works perfectly and doesn't break anything in my experience.

When scrolling a list on mobile, Slip attempts to update positions even
though no element is grabbed. That's problematic, as we have no target
object, so let's just not do that.
@kornelski
Copy link
Owner

It does seem hide the error rather than fix the root cause. If there's no target, then the library shouldn't be in state of dragging a target.

@henrikhermansen
Copy link
Contributor Author

You're absolutely right, and I agree. As I just mentioned in 32 and explained slightly more in #33 this might be caused by some irrational iOS event firing. This certainly goes beyond my skills to mend properly.

@henrikhermansen
Copy link
Contributor Author

On second thought, I saw this issue first on Android actually. And I know events are fired as they should there.

@mauron85
Copy link

I have same problem in Chrome for Android. What is the status of this?

kornelski added a commit that referenced this pull request Feb 27, 2015
Prevent updating position without target
@kornelski kornelski merged commit d94cbd5 into kornelski:master Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug when scrolling on Mobile Safari IOS 8.1
3 participants