[ka-Map-dev] [Bug 1576] New: OnClick events not triggered correctly
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Wed Aug 30 18:43:04 EDT 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1576
Summary: OnClick events not triggered correctly
Product: ka-Map
Version: 0.3
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: core
AssignedTo: ka-map-dev at lists.maptools.org
ReportedBy: brabec at gmail.com
OnClick events are meant to be triggered from 'onmouseup' as follows:
if (!gDblClickTimer) {
gDblClickTimer = window.setTimeout(bind(this.dispatchMapClicked,
this, x, y), 250);
}
The idea is that if this 'up' event is part of a double click, we want to give
the double click a chance to cancel the single click event. However, if this is
indeed just a single click, the gDblClickTimer remains set and any subsequent
single clicks do not work. Suggest to add
gDblClickTimer = null;
somewhere, e.g. into kaNavigator.prototype.dispatchMapClicked or add another
setTimeout event or something like that..
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the ka-Map-dev
mailing list