lightweight-charts icon indicating copy to clipboard operation
lightweight-charts copied to clipboard

Price scale zoom via mouse wheel when hovering over price.

Open JonSingleton opened this issue 3 years ago • 1 comments

When scrolling (either via mousewheel or two-fingered touchpad, does not matter) within lightweight charts while hovering over the right-side scale, the chart itself zooms in the same manner as while hovering over the chart data (rather than over the right-side scale). Currently the only way to do this is to click and drag the right-side scale up and down.

An option to pass when creating the chart to allow the functionality to change so that when hovering the mouse over the right-side scale and scrolling, the price scale zooms in and out (candles increase/decrease in height), while still allowing scrolling as normal while hovering over the chart data.

This is the default behavior within tradingview and I've become so accustomed to it.

I believe issue 1162 is asking for this same behavior but I believe it was misunderstood and incorrectly linked to 971 which deals with charts capturing scrolling when trying to scroll a page.

It would make my day if someone replies and informs me this option is already available. I've combed through the documentation as best as I could as well as issues here and I've not been able to turn up an answer for it.

example

JonSingleton avatar Jan 11 '23 06:01 JonSingleton

did you ever figure this out @JonSingleton ? unexpected gap given how this is the behavior in native tradingview.

stolemabike avatar Aug 23 '24 09:08 stolemabike