Reputation: 853
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
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