Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Guard against invalid state in event comparison
  • Loading branch information
webfiltered committed Aug 20, 2025
commit 8a1da3f89abf92818f499a85d33d7e2fe2ddc0f5
2 changes: 1 addition & 1 deletion src/lib/litegraph/src/CanvasPointer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class CanvasPointer {
isTrackpadGesture(e: WheelEvent): boolean {
// Use the new device detection
const now = performance.now()
const timeSinceLastEvent = now - this.lastWheelEventTime
const timeSinceLastEvent = Math.max(0, now - this.lastWheelEventTime)
this.lastWheelEventTime = now

if (this.#isHighResWheelEvent(e, now)) {
Expand Down