Mouse: invoke drag immediately on start if the start occurs during mousemove..

This commit is contained in:
Scott González
2008-06-04 19:32:33 +00:00
parent 2f80c18734
commit f17737b2d4

View File

@@ -236,7 +236,7 @@ $.ui.mouse = {
if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
this._mouseStarted =
(this.mouseStart(this._mouseDownEvent, e) !== false);
(this._mouseStarted || this.mouseUp(e));
(this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e));
}
return !this._mouseStarted;