Skip to content

Block zooming with mouse/wheel in JS Root #2181

Description

@Matb85

On @grzanka's request, I've created this issue to suggest an improvement in plot rendering - block zooming with mouse/wheel in JS Root so that the plots don't get accidentally enlarged when scrolling down.

The fix is simple:

  1. Import the settings object from jsroot:
import { settings } from "jsroot";
  1. Disable the ZoomWheel option:
settings.ZoomWheel = false; // https://github.com/root-project/jsroot/blob/master/modules/core.mjs#L257

References:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions