cnr-isti-vclab / openlime

Web-based, advanced images viewer (RTI, multispectral, BRDF, etc. )
GNU General Public License v3.0
23 stars 6 forks source link

[Handling] Zoom with ctrl + wheel on PC (or ⌘ + wheel) #27

Closed EloiGattet closed 2 years ago

EloiGattet commented 2 years ago

Hi! Would it be possible to change the handling to use CTRL + wheel so when the openlime is embeded in a web page it won't stop the scrolling? And it could detect the scrolling but show a message a bit like here on google maps

Capture d’écran, le 2022-06-13 à 13 49 53

(just a text message all over the canvas explaining how to zoom)

ponchio commented 2 years ago

Done, can be enabled setting a UIBasic property like this:

ui.controlZoomMessage = "Use control + wheel to zoom"

.openlime-overlaymsg class in css defines the look.

EloiGattet commented 2 years ago

Thank you very much!