-
Notifications
You must be signed in to change notification settings - Fork 40
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
fix touch handling (pragmatic approach) #349
Conversation
… variable inside UITouch" This reverts commit 9a698b9.
Do I understandly correctly, that 9a698b9 was intended to be a refactor without any behaviour change, but it indeed changed the behaviour? Would totally make sense then to revert it and re-iterating again on the touch handling. |
hard to say @rikner . I can't see a pr for this, seems like it was commited to master directly without description or motivation. I think we tried to align the cancels behaviour with iOS, because this is slightly different. On android the draghandles disappear while dragging, on iOS they don't. And this is probably what he intended to fix, but now only touchesBegan and moved gets called and touchesEnded gets cancelled which leads to the weird UX where the main controls remain hidden after dragging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're currently releasing from a branch then we should merge this to avoid that. I fear we may break others' code doing this but so far no one has made us aware that they're using this in production so let's go for it for now
i think having a consistent behaviour between touchesBegan and touchesEnded is probably more beneficial for every project using UIKit. I'm happy to work on a fix asap as soon as someone opens an issue ;) |
ok never mind, merging this pr breaks scrolling through the exercise parts menu in our courses. It's new to me that this commit behaves differently than the last commit of fix-touch #333 I am closing this now and will re-iterate on the |
This reverts commit 9a698b9.
Type of change: fix broken loop handles
Motivation (current vs expected behavior)
Reverting 9a698b9 leads to the exact same behaviour as we have on the latest commit of the
fix-touch
branch.This commit introduces the behaviour that touchesEnded gets (maybe correctly?) cancelled, but touchesBegan does not. Thats why in our player we see that the all controls get hidden when dragging a loop handle, but they never come back on touchesEnded.
https://record.wtf/play?id=1638181427736_46106
reproduce:
Please check if the PR fulfills these requirements