You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. Sorry for the late response. This is an issue in the Flotr2 handles plugin. You'd expect that, once you reach the end of the graph, the selection stays 1/3 in size but stops moving with your mouse?
I have found a solution. I'm github-newbie so instead of making pull request i'll just type my code here. I've made a change in envision.js file, line 5673, function mouseMoveHandler:
functionmouseMoveHandler(e,position){if(!this.handles.initialized)return;if(!this.handles.moveHandler)return;vardelta=position.x-this.lastMousePos.x,selection=this.selection.selection,area=this.selection.getArea(),handles=this.handles;// added 2 if statements to check if selection can go any further.if(delta>0){if(selection.second.x+delta+1>this.canvasWidth)returnfalse;}if(delta<0){if(selection.first.x+delta<=0)returnfalse;}handles.moveHandler(area,delta);checkSwap(area,handles);this.selection.setSelection(area);}
Selection box never changes size when dragging over the edge.
Please let me know if this fix is satisfactory.
EDIT: Right now I see this fix isn't enough. When selection box reaches the edge it still gets smaller by pixels, but only for the first hit on drag.
Reproduction:
I can't tell if this is a Flotr or Envision bug. Appears in demos built from current master.
The text was updated successfully, but these errors were encountered: