Skip to content Skip to sidebar Skip to footer

Getting Mouse Coordinates In Sdk First-time Right-click

For an SDK add-on, I am trying to detect, on right-click, the closest page anchor (as described here). Since JavaScript apparently has no way to query the mouse coordinates without

Solution 1:

You can actually query the mouse coordinates without a mouse listener.

This page has a bunch of examples: https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Standard_OS_Libraries

It has to be done on per OS basis though as it uses JS-Ctypes. If you're worried about performance don't fear at all. You can use the code asynchronously via ChromeWorkers


Post a Comment for "Getting Mouse Coordinates In Sdk First-time Right-click"