I have a group of isc.Window instances that I can drag around the browser window. I have figured out how to keep the window from being able to be moved outside of the visible browser window by overriding dragRepositionStop and dragRepositionMove. At the end of a move I can successfully place the window back in the visible area if the user attempted to drag the window out of the visible window.
What I can't do is keep the dragTracker from leaving the visible browser window during a drag.
I'm sure I can do it if I can figure out how to get a handle to the instance of the dragTacker canvas while inside dragRepositionMove() for the window.
So the question: During a drag operation, how can I locate the dragTracker canvas instance so that I can perform operations on it?
EventHandler has a setDragTracker() method that allows me to create a custom tracker, but it doesn't have a getDragTracker() function to allow me to manipulate the existing tracker (like the default outline).
Any guidance would be appreciated.
Thanks,
-Chris
What I can't do is keep the dragTracker from leaving the visible browser window during a drag.
I'm sure I can do it if I can figure out how to get a handle to the instance of the dragTacker canvas while inside dragRepositionMove() for the window.
So the question: During a drag operation, how can I locate the dragTracker canvas instance so that I can perform operations on it?
EventHandler has a setDragTracker() method that allows me to create a custom tracker, but it doesn't have a getDragTracker() function to allow me to manipulate the existing tracker (like the default outline).
Any guidance would be appreciated.
Thanks,
-Chris
Comment