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?
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(...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.