Detect a pan using middle button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this reactor set to recognized when switching to viewport.
(vlr-miscellaneous-reactor nil '((:vlr-layoutswitched . LO-changed)))
It is designed to set a variable to the scale of the viewport (or to the scale of paperspace).
However, when I pan a locked viewport, the mouse sometimes gets stuck in the pan mode. I am positive (I ran tests) it has something to do with having to swap out to PS to pan then back to MS when pan is complete, thereby running the reactor twice with each pan.
I would like to known how to detect if a pan is being performed by using the mouse middle button. I feel this would be another reactor, possibly the (vlr-mouse-reactor data callbacks). Hmm. the help file implies that middle clicks are not detected.
That makes me wonder if it would require an Express Tools Function. I seem to recall acet having a right-click detection, but I cannot seem to find it now. Or maybe its GRREAD? But then what would be returned by GRREAD to get the middle button?
Thanks
Windows 10 Pro, x64, Nvidia Quadro P1000
Intel Core i9-11900k; 3.50GHz, 32 GB RAM, 500GB WD BLACK M.2