- One way to prevent the gauges from being dragged on the X axis is to use overflow-x: hidden; in your CSS.
- Another way to stop the element from being dragged off the screen on a mobile device is to use JavaScript to calculate the window scroll and offset of the element.
- You can also use the draggable attribute or the pointer-events property to disable the drag event on the gauges.
How to prevent gauges and graphs to move when scrolling?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,everytime I view my channel on my mobile the gauges are being dragged when I scroll. How can I prevent it and lock them in space?
0 件のコメント
回答 (3 件)
Yousef
2023 年 10 月 29 日
移動済み: Image Analyst
2023 年 11 月 15 日
Hi
0 件のコメント
Yousef
2023 年 11 月 15 日
HI @Bar
To prevent gauges from being dragged when scrolling on your mobile channel, you should first look at the CSS settings and use `position: fixed;` to lock the gauges in place. Additionally, check your JavaScript or JQuery code to disable any draggable functionality specifically for the gauges. It's also important to ensure your design is responsive, handling touch events properly, especially if you're using frameworks like React, Angular, or Vue. Using debugging tools like Chrome DevTools can be helpful for diagnosing and fixing the issue. Lastly, if your channel is built on a specific platform like WordPress or a mobile app development framework, consult their respective documentation for platform-specific solutions.
0 件のコメント
Christopher Stapels
2023 年 11 月 22 日
If its really important, I would suggest you host them in an iframe on another site. The scrolling behavior is sometimes odd on mobile.
0 件のコメント
コミュニティ
その他の回答 ThingSpeak コミュニティ
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!