Oromis / touch-vtt

Introduces touch screen support to FoundryVTT
40 stars 26 forks source link

Sporadic Character Sheet Opening on Touchscreen Setup with TouchVTT #100

Open swedax94 opened 1 week ago

swedax94 commented 1 week ago

Environment:

Description of the Issue:
When using TouchVTT with a Touchscreen-On-TV setup, the character sheet opens sporadically and unpredictably. This occurs sometimes with a long press and other times when dragging a token, making it difficult to reproduce consistently. No errors are recorded in the logs. The problem with this is that it makes it impossible to move a token because the character sheet always pops up, even after deselect and select.

Troubleshooting Attempts: The default behavior in foundry is to open the character sheet when you double-click on a token. Maybe thats the point. Initially, I suspected this might be due to Windows’ double-click settings, so I increased the needed double-click speed to its maximum, but the issue persists. It also could be a “long press” function, interpreted as double-click by windows, but Windows lacks a setting to provide us with options there.

Suggested Solution:
Would it be possible to add an option to:

  1. Completely disable character sheet opening for specific selectable users, or
  2. disable just double-click or longpress for specific users, or
  3. add an option to change the click behavior/controls which is not possible in the basic version of foundry

This would be particularly useful for setups with a "TV-Viewer-User" account. I have already tested with own custom scripts without success and believe this may be interesting for your module.

Aioros commented 1 week ago

Hey, thanks for the detailed report. Issues with IR frames are often difficult to diagnose for me because, well... I don't have one. I did just fix an issue that could possibly be related, so I suggest trying to update the module to v2.2.15 first and see if that's better.

Apart from that, I'll try to investigate. If you can, I would like to see a log during one of these unwanted double clicks. You would have to go in TouchVTT's settings, enable Debug Mode (the last option), then try to reproduce the issue. When you do, grab a nice big bunch of logs from the console and upload it here. If it's not too much trouble, I'd appreciate the help.