mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Bug: ShortClick not recognized in chrome when scrolled down far enough #1450
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1450
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @heikomat on GitHub (May 28, 2022).
What does not work as described in the documentation?
ShortClicking the slection-dot in the mosaic-view doesn't always work when having scrolled far enough.
How can we reproduce it?
I'm observing this behaviour in chrome, on a macbook pro, using the trackpad
This happens on a local version, but also on the current release-version of photoprism.
The Issue seems to be, that the event-timestamp of the click-event is smaller than the event-timestamp of the corresponding mousedown-event.
This does NOT happen on firefox.
Strangely enough, the clicks that don't result in toggling the selection are ALSO not recognized as click by the video-capture. This can be seen by the fact that a log appears without a circle appearing around the mouse.(On closer inspection, the circle can be seen on the buggy click before the last one)This made me think that this is a macos issue, but that can't be, because firefox on the same machine does not show this behaviour.
This in turn made me think that this is an issue with chrome. But even if it is, fixing it photoprism is probably a lot easier.
What behavior do you expect?
if the item was selected, it should get unselected and vice versa
What could be the cause of your problem?
Maybe it has to do with the fact that i'm using a trackpad.
It could also be that chrome might be waiting to see if i make a double click?
Or it has to do with the reduced precision of event.timeStamp
Can you provide us with example files for testing, error logs, or screenshots?
Here's a video:
https://user-images.githubusercontent.com/20770029/170840368-3f9c5feb-61d1-45ab-9268-f5c1e39bcfb9.mp4
Note that the clicks that don't result in toggling the selection are ALSO not recognized as click by the video-capture. This can be seen by the fact that a log appears without a circle appearing around the mouse.
Which software versions do you use?
@lastzero commented on GitHub (May 28, 2022):
Probably because we manually handle the timing of click events so that a long/short click can be distinguished in mobile Safari. I'm in a hurry right now, but you should be able to find the related/closed GitHub issue with these keywords. It's a bit of a hack, but I haven't found a better solution that works on all browsers.
I won't have time to experiment further in the near future. So if anyone has a solution that works on all browsers AND devices while avoiding the problem reported in this ticket, let us know! 😉
@lastzero commented on GitHub (Jul 7, 2022):
Is this still an issue (that should remain open)?
@heikomat commented on GitHub (Aug 11, 2022):
Haven't rechecked, but assuming that it's because of the weird event timestamps, this is probably still an issue (as I haven't seen anything related to that getting changed).
Luckily this should be super easy to test. will check that when I'm back home in about an hour
@heikomat commented on GitHub (Aug 11, 2022):
Nope, can no longer reproduce the issue. Maybe chrome has fixed something regarding event timestemaps?
Closed -> no longer reproducible
@graciousgrey commented on GitHub (Aug 11, 2022):
Thanks for testing and all the other work you do ❤️