Deathamns / Viewhance

Enhancements for the browser's default media viewer
https://deathamns.github.io/Viewhance/
Other
99 stars 23 forks source link

Zoom Bug #63

Closed Mike-Reddick closed 5 years ago

Mike-Reddick commented 5 years ago

Using initial size mode in contain or best fit I can't use zoom like ctrl +, the only zoom which work is using the plugin loupe. Note: In natural mode ctrl zoom work! Is possible make zoom work in other modes please?

Deathamns commented 5 years ago

Ctrl+ is a browser feature and it scales the whole page, including the menu for example. If you want to use zoom only the image, then just press +, - without Ctrl, these are extension shortcuts.

Mike-Reddick commented 5 years ago

the problem is, for instance, if you use an mouse gesture to zoom in browser, if have two shortcuts, need 4 gestures, 2 to all things, 2 to images, please is possible make plugin compatible with ctrl + and - using contain or best fit?

Deathamns commented 5 years ago

Mouse gesture extensions probably don't send shortcuts to the page, instead they use browser APIs to change the zoom level. So, this extension wouldn't be able to intercept that.

You have a few options that you could already use for zooming with the mouse.

You can enable the "Zoom with mouse wheel" option to make wheel zooming the default. You can on demand activate zoom-mode by holding the right mouse button over the image for a second, or you can press Z to swap modes. Alternatively, you can move your cursor over the magnifier icon in the menu, and left/right click or mouse wheel over the icon.

Mike-Reddick commented 5 years ago

thanks,

Mike-Reddick commented 5 years ago

Sorry but, I'm using strokesplus (strokesplus.com) if I set + or - to an gesture, work in any page, but not in Viewhance, I tried also alt+ and alt-, same result, why? You can see it please, just Viewhance can't recognize the gesture.

Deathamns commented 5 years ago

Works for me. Zoom in: acSendKeys("{ADD}"), Zoom out: acSendKeys("{SUBTRACT}").

Mike-Reddick commented 5 years ago

, the issue was with me :), I'm using {PLUS} instead of {ADD}, thanks so much the attention, and sorry...