ubiquity
10-07-2008, 04:17 AM
My question is regarding the following from the hotspots.html help file:
segments changes panorama segmentation quality
<pano segments="30" onPress="segments=10" onRelease="segments=30" />
I would like to know if there is any event that triggers when the pano is done moving after a click-and-drag motion. The code above is problematic for me because it increases the segments of the pano when the mouse is released. The pano is moving at the time of release and the segment count shoots up, slowing the performance of the pano’s animation. I need the segments to increase after the pano’s motion has completely stopped.
I’ve tried to jerry-rig it by using a timer that triggers a function that increases the segments after a couple seconds.
onRelease="
timer+=1,2000,,global.increasePanoQuality;
"
It works ok but I would rather have it trigger the function when the pano has stopped moving.
segments changes panorama segmentation quality
<pano segments="30" onPress="segments=10" onRelease="segments=30" />
I would like to know if there is any event that triggers when the pano is done moving after a click-and-drag motion. The code above is problematic for me because it increases the segments of the pano when the mouse is released. The pano is moving at the time of release and the segment count shoots up, slowing the performance of the pano’s animation. I need the segments to increase after the pano’s motion has completely stopped.
I’ve tried to jerry-rig it by using a timer that triggers a function that increases the segments after a couple seconds.
onRelease="
timer+=1,2000,,global.increasePanoQuality;
"
It works ok but I would rather have it trigger the function when the pano has stopped moving.