Skip to content

event.originalEvent

event.originalEvent — Events > Event object > Payload and state. Cytoscape.js signatures, parameters and return contract.

event.originalEvent — Events › Event object › Payload and state

Preview · Events › Event object › Payload and state

Read in the complete API reference · All API members

// the DOM event behind a gesture, when there was one
event.originalEvent: NativeEvent

the DOM event behind a gesture, when there was one

Returns NativeEvent

Example

console.log(event.originalEvent); // undefined

Example graph and handle setup