Comments (3)
The ToolManager.holdDelay property just controls when the Tool.doWaitAfter method is called. The default value is 850 milliseconds. A timer is started upon mouse-down, is restarted on mouse-move beyond a certain distance (Tool.isBeyondDragSize), and is cancelled upon mouse-up and in a few other circumstances.
The DragSelectingTool.delay property controls how long to wait before DragSelectingTool.canStart can return true. The default value is 175 milliseconds. No timer is involved.
So the ToolManager.holdDelay property should not affect the behavior of the DragSelectingTool.
I believe the user does have to move the mouse after a mouseHold event in order to get a new mouseHold event. The same goes for mouseHover events, which implement tooltips. So that might explain why sometimes you do not get any event.
I cannot explain why the timings are less than 800ms. We'll investigate. I suspect it's interacting with waiting for mouseHover events.
from gojs.
Ah, this is a bug in your test code. You wrote:
myDiagram.toolManager.doMouseDown=function(){
start = new Date().getTime();
go.Tool.prototype.doMouseDown.call(myDiagram.toolManager)
}
But the call to the overridden method should have been:
myDiagram.toolManager.doMouseDown=function(){
start = new Date().getTime();
go.ToolManager.prototype.doMouseDown.call(myDiagram.toolManager)
}
Basically, your code was not calling the normal ToolManager.doMouseDown functionality.
With the fix I am consistently getting times of about 850-860 ms.
from gojs.
Oops.
Thanks for the swift reply.
Groeten, Martien
Van: WalterNorthwoodsmailto:[email protected]
Verzonden: 16-6-2016 14:48
Aan: NorthwoodsSoftware/GoJSmailto:[email protected]
CC: Martien van Lentmailto:[email protected]; Authormailto:[email protected]
Onderwerp: Re: [NorthwoodsSoftware/GoJS] holdDelay (#24)
Ah, this is a bug in your test code. You wrote:
myDiagram.toolManager.doMouseDown=function(){
start = new Date().getTime();
go.Tool.prototype.doMouseDown.call(myDiagram.toolManager)
}
But the call to the overridden method should have been:
myDiagram.toolManager.doMouseDown=function(){
start = new Date().getTime();
go.ToolManager.prototype.doMouseDown.call(myDiagram.toolManager)
}
Basically, your code was not calling the normal ToolManager.doMouseDown functionality.
With the fix I am consistently getting times of about 850-860 ms.
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#24 (comment)
from gojs.
Related Issues (20)
- Too much data crashes the browser HOT 2
- How to get Name Key onclick marker leaflet HOT 1
- Getting issues in GuidedDraggingTool.ts HOT 1
- Please provide the source code for the Data Flow (vertical) for the angular project HOT 1
- Using gojs in node to render large layouts on the server side HOT 1
- Orthogonal + Grid Snap = Jank HOT 1
- "Error: GraphObject.make requires a class function or GoJS class name or name of an object builder, not: ScrollingTable" HOT 1
- Inconsistent snap with default grid, default gridSnap, and objects of different widths HOT 1
- Last
- when the parent node uses scaling, the gojs click event will cause an error HOT 1
- dwg support HOT 1
- Change the origin of the diagram's coordinate HOT 1
- Extracting user data for graphs/flowcharts rendering HOT 1
- Support and integration of GoJs to Excalidraw Elements HOT 2
- Compile warnings generated when using esbuild HOT 4
- Types not exported HOT 3
- v2.3.16 has console.log statement happening HOT 1
- Module not found error for go-debug HOT 5
- Disappearing nodes on canvas, for macOS HOT 2
- Copying nodes in version 3.0.0 does not work HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gojs.