WindowDeleteAllHotspots and ScrollWheelHandlers

Posted by Bast on Fri 01 Apr 2011 08:55 PM — 4 posts, 17,300 views.

#0
Just a quick question,

Does WindowDeleteAllHotspots also remove scrollwheelhandlers associated with those hotspots?

Bast
Australia Forum Administrator #1
No it doesn't, but it does do this:


  m_Hotspots.clear ();
  m_sMouseOverHotspot.erase ();
  m_sMouseDownHotspot.erase ();
  m_sCallbackPlugin.erase ();


Maybe it should erase the m_sScrollwheelCallback as well. Anyone else want to comment?
USA Global Moderator #2
I guess as a general housekeeping thing I'm ok with this idea, but I don't really understand why this question has come up.
Amended on Mon 04 Apr 2011 06:44 PM by Fiendish
Australia Forum Administrator #3
Revisiting this, yes it does delete the references to the scroll-wheel handlers, because they are part of the hotspot, not part of the miniwindow.

Thus if the hotspot goes, the handler goes.