&& add these properties to the header _nXCoord = 0 _nYCoord = 0 && in the mousedown() this._nXCoord = m.nXCoord this._nYCoord = m.nYCoord && in the mouseup() #define _NOT_MOVED ( ; ( m.nXCoord == m.this._nXCoord ) ; and ( m.nYCoord == m.this._nYCoord ) ; ) do case case _NOT_MOVED && do your thing endcase