返回首頁 

Greasy Fork is available in English.

Scroll page on double tap (mobile)

Этот скрипт разработан для мобильных браузеров, и прокручивает страницу при двойном нажатии. Верхняя половина экрана прокручивает вверх, а нижняя половина — вниз. Двойное нажатие и движение пальцем включает режим быстрой прокрутки. Когда страница уже прокручивается, одиночный тап прокрутит её дальше.

Устаревшая версия за 04.11.2024. Перейдите к последней версии.


Установить этот скрипт?
Автор
emvaized
Оценки
000
Версия
1.0.1
Создано
30.10.2024
Обновлено
04.11.2024
Размер
9,9 КБ
Лицензия
MIT
Работает на
всех сайтах

This userscript is designed for mobile browsers, and scrolls page on double tap.Top half of the screen scrolls up, and bottom half scrolls down. Single taps are ignored for a specified timeout while script waits for a second tap, and then get dispatched programmatically.

Default value is to scroll page by 80% of the screen width on each double tap. It can be changed by modifying the amountToScroll variable (default value: 0.8)

Current bugs:
  • Some elements on page, which are designed to react to JavaScript events to handle taps, may not respond to the single taps anymore, as they are created programmatically from the script. I will think about how to fix it