Remove support for Tool#eventInterval.

This commit is contained in:
Jürg Lehni 2011-11-12 18:26:03 +01:00
parent 52ad906c97
commit c33998c140
2 changed files with 0 additions and 15 deletions

View file

@ -76,16 +76,6 @@ var Tool = this.Tool = PaperScopeItem.extend(Callback, /** @lends Tool# */{
* @function
*/
/**
* The fixed time delay in milliseconds between each call to the
* {@link #onMouseDrag} event. Setting this to an interval means the
* {@link #onMouseDrag} event is called repeatedly after the initial
* {@link #onMouseDown} until the user releases the mouse.
*
* @type Number
*/
eventInterval: null,
/**
* The minimum distance the mouse has to drag before firing the onMouseDrag
* event, since the last onMouseDrag event.
@ -165,9 +155,6 @@ var Tool = this.Tool = PaperScopeItem.extend(Callback, /** @lends Tool# */{
* is being dragged. The function receives a {@link ToolEvent} object which
* contains information about the mouse event.
*
* This function can also be called periodically while the mouse doesn't
* move by setting the {@link #eventInterval}
*
* @name Tool#onMouseDrag
* @property
* @type Function

View file

@ -565,8 +565,6 @@ var View = this.View = Base.extend(Callback, /** @lends View# */{
curPoint = viewToProject(view, event);
if (tool.onHandleEvent('mousedown', curPoint, event))
view.draw(true);
if (tool.eventInterval != null)
timer = setInterval(mousemove, tool.eventInterval);
dragging = true;
}