Skip to content

Commit

Permalink
make event resizing respect eventDragMinDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Dec 26, 2018
1 parent 8715e09 commit 37fdb1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interactions/EventResizing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ export default class EventDragging {
}

handlePointerDown = (ev: PointerDragEvent) => {
let { component } = this
let seg = this.querySeg(ev)!
let eventRange = this.eventRange = seg.eventRange!

this.dragging.minDistance = 5 // TODO: make this a constant
this.dragging.minDistance = component.opt('eventDragMinDistance')

// if touch, need to be working with a selected event
this.dragging.setIgnoreMove(
Expand Down

0 comments on commit 37fdb1e

Please sign in to comment.