question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stable event order?

See original GitHub issue

Issue 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:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maxkfranzcommented, Feb 7, 2018

Closing.

For people who refer to this in future: The takeaway message is that you can not assume event order for pan and zoom when doing a wheel zoom or a pinch zoom.

0reactions
maxkfranzcommented, Jan 25, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found