Author: Lars Michelsen <[email protected]>
Date: Fri Aug 26 15:54:41 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Fri Aug 26 15:54:41 2011 +0200
Bugfix: Registering drag stop event globally to prevent dragging problems on
slower clients
---
ChangeLog | 2 ++
share/frontend/nagvis-js/js/edit.js | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 61a9d8f..c2c126a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@ Frontend
in some rare cases
* Bugfix: Object positions can never be floats (always integers)
* Bugfix: Fixed wrong positions of controls during page load (at least in
firefox)
+ * Bugfix: Registering drag stop event globally to prevent dragging problems
+ on slower clients
Automap
* Bugfix: Made the problem automap work again
diff --git a/share/frontend/nagvis-js/js/edit.js
b/share/frontend/nagvis-js/js/edit.js
index 0c0b32a..aa9d36c 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -112,7 +112,10 @@ function makeDragable(objects, dragStopHandler,
dragMoveHandler) {
if(o) {
addEvent(o, "mousedown", function(e) { dragStart(e,
dragMoveHandler); });
- addEvent(o, "mouseup", function(e) { dragStop(e,
dragStopHandler); });
+ // The drag stop event is registered globally on the whole
document to prevent
+ // problems with too fast mouse movement which might lead to lag
the dragging
+ // object behind the mouse and make it impossible to stop dragging.
+ addEvent(document, "mouseup", function(e) { dragStop(e,
dragStopHandler); });
o = null;
}
}
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins