mirror of
https://github.com/ArnoldSmith86/virtualtabletop.git
synced 2026-03-02 22:57:02 -05:00
iOS "hold to copy" interferes with enlarge function #767
Labels
No labels
PCIO compatibility
Validator
automated testing
bug
documentation
duplicate
editor
enhancement
enhancement
library
library
maintenance
needs legacy server
pile related
reported client crash
routine operations
user interface
widget properties
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/virtualtabletop#767
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 @juandpinto on GitHub (Mar 3, 2024).
On iOS (regardless of browser), the typical "hold to copy" feature is highlights an element when held and brings up a context menu. This makes it difficult to use the enlarge function in VTT (which can be especially useful on small touch-screen devices) since it interferes with the enlarged view and makes things generally awkward to use. This does not appear to be a problem with PCIO, so looking there might provide clues as to how to address this.
I believe the issue maybe as simple as setting the CSS user-select property using
-webkit-user-select: none;, but I'd like to look a bit deeper into this. If I can make it work, I'll open a pull request for this.@bjalder26 commented on GitHub (Nov 25, 2024):
My guess is that we could prevent this behavior by adding
event.preventDefault();to the top of this function in widget.js.