問題タブ [scrollwheel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ubuntu - マウスのスクロール ホイールの方向を逆にする xinput 設定はどれですか?
この質問のアドバイスに従って、 xinputツールを使用してマウスのスクロール ホイールの自然なスクロールを有効にしようとしています。
入力デバイスを一覧表示$ xinput list
し、次の情報を取得します。
関連するデバイスはDell Dell USB Optical Mouse id=14
. を介してそのデバイスのプロパティを一覧表示し、$ xinput list-props 14
取得します
これらのうち、スクロール ホイールの方向を逆にするために変更できるのはどれですか?
Evdev Axis Inversion (306)
コマンドでプロパティを調整しようとしまし$ xinput set-prop 14 306 1, 1
たが、それはマウスの移動方向であり、スクロール ホイールの方向ではないようです。元に戻す必要がありました。
これらのxinput
設定のいずれかで、スクロール ホイールの方向が逆になりますか? そうでない場合は、おそらく別の方法を試す必要があります。私のOSはUbuntu 16.04.2 LTSです。
javascript - Mapping arrow keys to scrollwheel function?
I am running a slideshow on a client site. The slideshow animates each slide, and relies SOLELY on the scrollwheel of the mouse although it also 'swipes' when in touchscreen devices.
It's important to note here that the page doesn't actually scoll when using the scrollwheel, it only activates the next slide animation. The webpage never actually scolls in the traditional sense...
However some people don't use a scrollwheel, they use keyboard arrows.
Is there a way, ideally using JavaScript, to force the arrow keys to emulate a single scroll of the mousewheel?
I apologise for lack of code or previous efforts - I haven't been able to find anything with regards to this problem and the code is well embedded in the Slideshow extension. I'm hoping to add my own JS to complement the base Slideshow.