Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate Pannning With Mouse Wheel Down + Mouse Move to Pan Vision Image

I am trying to duplicate an image panning operation using the middle mouse scroll wheel depressed while moving the mouse.

 

Code is pretty simple, but pan occurs in opposite direction of normal pan and opposite to direction of mouse.  I have tried a number of options to try to reverse this but none successful. 

test_mouse_pan.PNG

 

 

 

 

Thoughts?

 

Thanks for looking.

 

Don

0 Kudos
Message 1 of 2
(4,211 Views)

Hello!

 

From testing the code, it behaves as I would expect? The default behavior for pan is to sort of "drag" the image to you. If you want the opposite behavior, you could manipulate the output of Last Mouse Position.

Rahul B.
0 Kudos
Message 2 of 2
(4,174 Views)