deps: Update dependency nipplejs to v1#653
Merged
renovate[bot] merged 1 commit intomainfrom Mar 25, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
55f879d to
16ecf5f
Compare
16ecf5f to
79f2cfa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.10.2→^1.0.1Release Notes
yoannmoinet/nipplejs (nipplejs)
v1.0.1Compare Source
v1.0.0Compare Source
NippleJS v1.0.0
A complete ground-up rewrite of NippleJS — now TypeScript-first, zero dependencies, with a modern build pipeline and a brand new documentation website.
🌐 Documentation · 🎮 Interactive Demos · 📦 npm
✨ New Features
color: { front, back }— Full visual controlThe
coloroption now accepts astringor a{ front, back }object. Since it sets the CSSbackgroundproperty, gradients, images, and any CSS background value work out of the box. (f244978)collection.reposition()+ automaticResizeObserverManually recalculate the zone bounding box and joystick positions after layout changes. The zone is also automatically watched with a
ResizeObserver, so most resize scenarios are handled without any code. See the API docs. (075ab9b)baseDeltain move event data (follow: true)When the joystick base follows the thumb past the radius, the move event now includes
baseDelta: { x, y }— the per-frame displacement of the base. Usevectorfor fine control andbaseDeltafor camera/world panning. See it in action in the Space Observatory demo. (f9e2095,6b94695)logLevelAPIControl the library's console output globally. See the Logging docs. (
f6b6ca8)Zone position warning
The library now warns at creation time if the zone element has
position: static, which causes joysticks to be positioned incorrectly. (f84205d)moveevent fires continuouslyThe
moveevent now fires on every pointermove, not only when the direction changes. This was a long-standing bug in v0. See the Events reference. (c438f2b)🐛 Bug Fixes
preventDefault()onpointerdowninterfered with dual-stick setups. Now only called on move events;touch-action: noneon the zone handles the rest. (ca330c4)_domHandlers_memory leak —unbindEvtnever removed entries from the internal Map. (ce66ba0)addedevent —addToDom()fired the event redundantly on everystart(). (d94f3bd)cleanInactiveTouchesspreading native events — prototype properties were lost, producing NaN positions. (d94f3bd)timersMap entries. (d94f3bd)trigger()Set mutation — handlers modifying the Set during iteration could skip callbacks. Now snapshots before iterating. (d94f3bd)applyPositionzero handling —undefinedcoordinates were silently treated as0. (d94f3bd)createJoystickcrash on invalid position — missingreturnafter error log caused undefined variable access. (d94f3bd)processOnStart. (d94f3bd)display: 'hidden'invalid CSS — wasdisplayinstead ofvisibility. (ce66ba0)🏗️ Infrastructure
Uid,Identifier), strict mode, full.d.tsexportsnipplejs,docs,tests,tools,assets.mjs) + CJS (.js) + type declarations (.d.ts)e35ca20)291649e,4235b4d,fc0e27f)e08fed6,c5ce457)e08fed6)windowaccess guarded withtypeofchecks, removed IE MSPointer dead code (d94f3bd)🌐 Documentation Website
A brand new documentation site built with Astro 6 + Tailwind CSS 4, featuring an "Aurora Neon" dark theme with animated gradient blobs, frosted glass surfaces, and a cursor-following grid highlight.
5 Interactive Game Demos
Each game demo showcases a specific nipplejs option with a live code pane and debug overlay:
mode: 'static'lockX: truefollow: true+baseDeltarestJoystick: falseCarousel with fullscreen mode
Games are displayed in a flex-based horizontal carousel with perspective tilt, blur effects (with Firefox detection fallback), dot indicators, and keyboard/arrow navigation. Each game supports fullscreen mode. (
d8defa1,c99bd81)Mobile optimized
Logo particles and grid highlight disabled on touch devices, game loops paused on non-active carousel slides, simplified transforms. (
695bb8a)GitHub Pages
Auto-deployed on push to master. (
011e880)maxNumberOfNipplesmaxNumberOfJoysticksdestroyedeventjoystickDestroyedjoystick.eljoystick.ui.elshow(),hide(),add(),remove()manager.get()manager.getJoystickByUid()ormanager.allmanager.idmanager.uidmanager.ids(evt, data) => {}(evt) => { evt.data }movefires on direction change onlymovefires on every pointermoveSee the full migration guide for details.
Configuration
📅 Schedule: Branch creation - "after 12pm on Tuesday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.