ShareShortcuts
Bifurcar “Tilt Scroll”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que canibeanartist reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
80K
Guardado
4
Acciones
3
Categoría
Utilities
Versión
1.0
Idioma
EN

# Tilt Scroll

Share a web page from Safari to this Shortcut and it will allow you to tilt your device towards you or away from you to scroll up and down within the viewport.

Most iPhones shouldn't have a problem. Glitchy on my iPad Air.

With this initial release, refresh the page to stop the script.

#### TODO

- Add function to stop the script

- Refine variable speed

Novedades

Versión 1.0

First release

Historial de versiones
1.0 7 de nov. de 2018

First release

Qué hace

3 acciones
  1. Comment
    This is an initial release. Only Safari is supported through the Shortcut. /u/dialup_ on reddit. @canibeanartist on RoutineHub, Instagram, Snapchat, Twitter.
  2. Run JavaScript on Web Page
  3. Stop This Shortcut

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/web'
#define color blue
#define glyph moveArrow

/*
This is an initial release. Only Safari is supported through the Shortcut.

/u/dialup_ on reddit.
@canibeanartist on RoutineHub, Instagram, Snapchat, Twitter.
*/
runJavaScriptOnWebpage("const handleOrientation = event => {\nconst x = event.beta;\n\n    if (x < 37 && x > 23) return;\n    \n    if (x > 37 && x <= 45) {\n        window.scrollBy(0, 1);\n    } else if (x > 45 && x <= 50) {\n        window.scrollBy(0, 2);\n    } else if (x > 50) {\n        window.scrollBy(0, 4);\n    } else {\n        window.scrollBy(0, -2);\n    }\n};\n\nwindow.addEventListener(\"deviceorientation\", handleOrientation);\n\ncompletion();")
stop()
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de canibeanartist

Ver todo

También te puede gustar

Ver todo
Publicidad