# Horizontal scroll bar 'shifting' while scrolling with touchpad/trackpad

**URL:** <https://discuss.codemirror.net/t/horizontal-scroll-bar-shifting-while-scrolling-with-touchpad-trackpad/3565>\
**Category:** Uncategorized\
**Created:** [September 24, 2021, 11:25pm UTC](https://discuss.codemirror.net/t/horizontal-scroll-bar-shifting-while-scrolling-with-touchpad-trackpad/3565 "2021-09-24T23:25:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![truxton](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/t/59ef9b/32.png) [@truxton](https://discuss.codemirror.net/u/truxton)\
**Post date:** [September 24, 2021, 11:25pm UTC](https://discuss.codemirror.net/t/horizontal-scroll-bar-shifting-while-scrolling-with-touchpad-trackpad/3565/1 "2021-09-24T23:25:04Z")

</div>

Hi,

I encountered a problem while using a touchpad/trackpad.  
Step:

1. [CodeMirror: Search/Replace Demo](https://codemirror.net/demo/search.html)
2. The code mirror block in the demo page does not react well while using a touchpad/trackpad to scroll vertically with two fingers: the horizontal scrollbar is easy to shift/move while (vertically) scrolling. Usually, it’s hard to scroll 100% vertically with a touchpad/trackpad, so I want to let the horizontal scrollbar be more “fixed” while using the touchpad/trackpad.
3. Another example: [Cursor problem](https://discuss.codemirror.net/t/cursor-problem/1378), the code block’s horizontal scrollbar is not such easy to “shift” while scrolling.

Are there any methods to let codemirror act like [Cursor problem](https://discuss.codemirror.net/t/cursor-problem/1378) while doing vertical scrolling using trackpad/touchpad? Thanks a lot.
