zoom.js
zoom.js copied to clipboard
Right click on expanded image
I got complaints from my users that they would expect right-click to work on the image while it's expanded. Currently it simply closes the zoom.
I simply added one line to _clickHandler
:
if (e.which == 3) return
Would you like a PR, do you disagree with the change or would you like me to add it in as an option?
Seems to be working fine, at least on Chrome 48 on OS X. Which browser and OS are you on?
On 01/02/16 13:14, Sahil Bajaj wrote:
Seems to be working fine, at least on Chrome 48 on OS X. Which browser and OS are you on?
Ubuntu 15.10 and Firefox 44.0.
What happens currently is that the right click is seen as a click and causes the enlarged image to close.
Cliff Stanford London: +44 20 0222 1666 Swansea: +44 1792 469 666 Mobile: +44 7973 616 666
Looks like a Firefox issue - I tried it just now and though I see the context menu, the image does zoom out as you described.