Stable event order?
See original GitHub issueIssue type
Feature request
Description of new feature This is more of a verification question than an outright feature request. Is the order of triggered events always stable for pan vs. zoom? Consider the following:
this.graph.cy.on('pan', this.panHandler = (e) => {
console.log('pan')
});
this.graph.cy.on('zoom', function(){
console.log('zoom')
})
We’re observing that on a zoom-action, the zoom event will -always- trigger before the pan-event resulting from the zoom-action. Is this stable and thus can we rely on their internal order or is this just a side effect?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
On Stable Sequences of Events - jstor
A sequence {An} of events is called a stable sequence if for every event B ... We shall call a(o>) the local density...
Read more >Frequently Asked Questions | EventStable.com
It couldn't be easier to place your order with EventStable. Simply shop for the products you need using our visual navigation. Add them...
Read more >STABLE - SMU
This solution facilitates processes such as space management, event management, key requests, work orders, and so much more. The service will be available...
Read more >UI Events - W3C
Events which are synchronous ( sync events ) are treated as if they are in a virtual queue in a first-in-first-out model, ordered...
Read more >Event Entries
Welcome to EventEntries.com! ; Stable View Schooling Jumpers(Jan 2023) Aiken, SC. Schooling. III ; Grand Oaks H.T. (Jan 2023) Lady Lake, FL. Eventing....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing.
For people who refer to this in future: The takeaway message is that you can not assume event order for
pan
andzoom
when doing a wheel zoom or a pinch zoom.For user gestures, you can use the fact that humans are pretty slow in changing input actions, so thresholds of ~100ms or ~200ms are probably fine.