John
John

Reputation: 853

D3-brush disable SHIFT locking x/y position

From the documentation of d3-brush (https://alexdeng.github.io/ab-stats/d3/CHANGES/#brushes-d3-brush): "Holding down SHIFT (⇧) while brushing locks the x- or y-position of the brush."

How do I turn of this behaviour?

Upvotes: 1

Views: 154

Answers (1)

John
John

Reputation: 853

I figured it out. When constructing your brush with brush.call(d3.brush().on(... add the keyModifiers(false) argument: brush.call(d3.brush().keyModifiers(false).on(...

Upvotes: 1

Related Questions