-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entering Tracking Mode on Mobile #1198
Comments
At the moment there isn't a way to enter tracking mode through the API. Out of interest, what is your use-case for needing this? Your feedback could help us improve the API and enable this functionality in the future. |
@SlicedSilver On mobile, a long press is not always the first thing people try to do when interacting with a Chart. In our current custom solution it works like this: if a user swipes horizontaly for more than x pixel, the tracking mode is activated. Therefore a user could still scroll vertically but activate the chart while swiping horizontally on the chart. It would be really nice if therefore it would be possible to manually activate trackingmode or provide more options to activate it besides long-press |
@tomsnep Thanks for the feedback and suggestion. Sounds like a perfectly valid use case, and something that we will consider adding to a milestone in the future. For your use-case, would an API method such as |
@SlicedSilver Thanks for the quick response! I think having a way to programmatically toggle it would be very nice |
Was the problem fixed or does a solution in the internet exist. I have the same issue. I want to enter the trackingMode instantly when the user touches the graph on mobile devices. Any help is much appreciated since the issue is very urgent for me :( |
We also have this problem. In our case, we have set both |
Whilst not directly the API you requested, we have added a setCrosshairPosition API which meant your requirements. You could disable both Here is an example: https://github.com/tradingview/lightweight-charts/blob/acb80ab74592930012afa8aea393428fa8179460/website/tutorials/how_to/set-crosshair-position-tracking.js |
Hey there, how do I enter tracking mode on mobile without a long-press? Is this even possible? If it's not possible by default, does anyone havw an example of a "hack" they used to make this work?
Thanks and congrats on a great project.
The text was updated successfully, but these errors were encountered: