By default jsmind zooms on mouse wheel when the CTRL key is pressed, this behaviour can be disabled but cannot be modified.
There is one bug in the current implementation : the use of the non-standard mousewheel event rather than the standard wheel event. Some browsers such as Firefox do not support mousewheel. This pull request corrects this.
The current code enables mouse wheel zooming on ctrlKey exclusively. This is a problem as many browsers use this combo in order to zoom the whole viewport and therefore capture this event without passing it down to the web page.
This proposal does two things:
It allows one to modify which modifier keys need to be pressed in order to activate mouse wheel zooming
The default key combination changed to ctrlKey + shiftKey + mousewheel
By default jsmind zooms on mouse wheel when the CTRL key is pressed, this behaviour can be disabled but cannot be modified.
There is one bug in the current implementation : the use of the non-standard
mousewheel
event rather than the standardwheel
event. Some browsers such as Firefox do not supportmousewheel
. This pull request corrects this.The current code enables mouse wheel zooming on ctrlKey exclusively. This is a problem as many browsers use this combo in order to zoom the whole viewport and therefore capture this event without passing it down to the web page.
This proposal does two things:
The zoom view options now allow : /