Skip to content

Instantly share code, notes, and snippets.

View humana-fragilitas's full-sized avatar
👓
Studying

Andrea Blasio humana-fragilitas

👓
Studying
View GitHub Profile
@humana-fragilitas
humana-fragilitas / main-coverage-badge.json
Last active September 26, 2025 08:24
hex-code-coverage-blank-gist
{"label":"Main Process","message":"70.42%","schemaVersion":1,"color":"yellow"}
@humana-fragilitas
humana-fragilitas / coverage-badge.json
Last active September 5, 2025 10:20
museum-alert-api-code-coverage-blank-gist
{"label":"Coverage","message":"87.1%","schemaVersion":1,"color":"brightgreen"}
@humana-fragilitas
humana-fragilitas / coverage-badge.json
Last active September 5, 2025 14:55
museum-alert-desktop-code-coverage-blank-gist
{"label":"Coverage","message":"94.13%","schemaVersion":1,"color":"brightgreen"}
/**
* Problem: an Hammer.JS instance listens to the horizontal swipe gestures
* targeted at a top-level html element (e.g.: body) in order to show/hide
* an off-canvas menu; it should be possible to browse a touch-enabled carousel
* placed in the same page (e.g.: RoyalSlider, Owl Carousel or similar) without
* interfering with the above listener.
*
* Solution: enable Hammer.JS custom DOM events and prevent any "swipe" gesture
* from bubbling up to the body element by stopping event propagation via listeners
* attached to each nested touch-enabled element (e.g.: the carousel)