Closed camillevilla closed 2 years ago
I wonder if there are browser flags we could use to disable this just on the touchscreens? Chrome kiosk mode looks like it disables right-click, at least:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --kiosk --app=https://sul-wallscreens.netlify.app
I did a bit of digging on this, and it appears that some browsers (maybe Chrome) actually actively stop you from doing this, so JS-based solutions will sometimes not work. One thing I did try, which worked in firefox (but not Chrome), was changing the template:
<body oncontextmenu="return false">
Kiosk mode worked for me and prevented right-clicking as well as refreshing. it may also prevent you from navigating away to other pages; not sure.
To enable kiosk mode on Windows, you can create a new shortcut to Chrome, right click it and select "properties", go to the "shortcut" tab and add "--kiosk" at the end of the "target" field.
Yes! This worked. I'll add some documentation to the operators manual and close this ticket soon.
Currently, it's really easy for a visitor to end up outside of the wallscreen app. If they press and hold their finger on part of the screen, they'll get a right-click and a menu.
I investigated some touchscreen-level options for disabling this in #162 but haven't had luck.
Close this ticket when: