(mut self, on: T)
| 375 | /// The button to use is specified by [`Self::pan_pointer_button`]. |
| 376 | #[inline] |
| 377 | pub fn allow_drag<T>(mut self, on: T) -> Self |
| 378 | where |
| 379 | T: Into<Vec2b>, |
| 380 | { |
| 381 | self.allow_drag = on.into(); |
| 382 | self |
| 383 | } |
| 384 | |
| 385 | /// Whether to allow dragging in the axis areas to zoom the plot. Default: |
| 386 | /// `true`. |