-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Temporarily hold timeline if mouse moved recently (fixes #8630) #9200
Conversation
I can see one difference is that the old patch was based on the hover state, while yours is based on move timing. It could be better but I don't know by how much. |
Yeah, I figured I'd give it one more shot, because mis-clicking on the wrong status really bothers me. If this attempt gets rejected, I'll understand. 😅 For what it's worth, I used a timer because the I think a timer makes this more responsive - because one of the things I've got it doing is scrolling back to the top of the column on mouse idle, so that it doesn't actually stay stuck in the past. |
- On recent mouse movement, hold timeline position so statuses remain in place for interactions in progress. - If the timeline had been scrolled to the top before mouse movement, restore scroll on mouse idle.
cd0db8c
to
aaa03ac
Compare
Pushed a small tweak to better clear the timer, since I realized the property never returned to null after a clearTimeout |
I have to ask - what if I intentionally scroll down to visually mark my position on something. This would pull me back to top? Consider an alternative to this is disabling updates on mouseDown, since the click event is fired on mouseUp, the most annoying things are when you click on something and then it moves from under your mouse when you release, right? |
No, if you're not at
I don't think pause-on-mouseDown would help. For me, the issue feels most often like the timeline has moved in the span of approaching, landing on, and then clicking on a UI element. The mouseDown / mouseUp span is the shortest part of all that. |
Okay, so there's kind of only one way to find out. I will merge this, it will get some use from people running master, and then we'll know if it's a good change or if the behaviour will be disturbing. Fingers crossed but if it'll turn out worse I'll revert it, just a heads up 🙏 |
Yay, thanks for the consideration! No worries from me if it gets reverted. Figured I'd give it one more try |
…odon#8630) (mastodon#9200)" This reverts commit 6a1216d.
@lmorchard Could you please investigate #9217 as I am now getting complaints from people on servers running master. It seems that this patch interferes with manual scrolling. If it's the result of a minor bug, it would be great to find it, otherwise I am preparing to revert this. |
Sure, I will take a look in a few hours. I think I see what's going on. Edit: I see there's already a PR to revert - should I investigate? Or are you already on path to revert? |
As I said I am prepared to revert, but I can wait until you investigate. |
mastodon#8630) (mastodon#9200)"" This reverts commit fcbd5c8.
On recent mouse movement, hold timeline position so statuses remain in
place for interactions in progress.
If the timeline had been scrolled to the top before mouse movement,
restore scroll on mouse idle.