Author: eallen
Date: 2009-04-16 13:43:44 -0400 (Thu, 16 Apr 2009)
New Revision: 3301
Modified:
mgmt/trunk/cumin/python/cumin/visualizations.strings
Log:
Fix double-clicking on slot vis (now cancels single click)
Fix zooming-in.
Modified: mgmt/trunk/cumin/python/cumin/visualizations.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-04-16 13:32:55 UTC (rev
3300)
+++ mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-04-16 17:43:44 UTC (rev
3301)
@@ -353,7 +353,7 @@
var rx = Math.min(slot_clip_size, slot_map_info.width) / 2;
var ry = Math.min(slot_clip_size, slot_map_info.height) / 2;
- var click_info = get_index(rx, ry);
+ var click_info = vis.get_index(rx, ry);
if (click_info)
slot_center_index = click_info.index;
}
@@ -709,10 +709,10 @@
function doDoubleClick(e) {
var now = new Date();
- this.doubleclick_when = now.getTime();
- if (this.click_handle != null) {
- clearTimeout(this.click_handle); // Clear pending Click
- this.click_handle = null;
+ clicks.doubleclick_when = now.getTime();
+ if (clicks.click_handle != null) {
+ clearTimeout(clicks.click_handle); // Clear pending Click
+ clicks.click_handle = null;
}
if (!e) var e = window.event;
var posxy = get_relative_event_pos(e);