Merge pull request #42 from queryselector/issue-41

Fixed #41
pull/3/merge
Jens Mönig 2013-04-18 02:18:35 -07:00
commit bf15956f61
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -9509,14 +9509,15 @@ HandMorph.prototype.processMouseMove = function (event) {
this.grab(morph);
this.grabOrigin = this.morphToGrab.situation();
}
// if the mouse has left its fullBounds, center it
fb = morph.fullBounds();
if (!fb.containsPoint(pos)) {
this.bounds.origin = fb.center();
this.grab(morph);
this.setPosition(pos);
if (morph) {
// if the mouse has left its fullBounds, center it
fb = morph.fullBounds();
if (!fb.containsPoint(pos)) {
this.bounds.origin = fb.center();
this.grab(morph);
this.setPosition(pos);
}
}
}
/*