Skip to content

Tags: niklasramo/dragdoll

Tags

0.6.0

Toggle 0.6.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v0.6.0 (#12)

* Add more missing unit tests.

* Update docs.

* Update deps.

* Add support for taking into account individual transforms (https://drafts.csswg.org/css-transforms-2/#individual-transforms) when computing the world transform matrix.

* BREAKING: Fix draggable stop() method to always handle the stopping synchronously.

* BREAKING: Rename Sensor events field to _events_type.

0.5.0

Toggle 0.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
V0.5.0 (#11)

0.4.0

Toggle 0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v0.4.0 (#9)

- Fix types of `createSnapModifier` utility.
- Refactor `KeyboardSensor` and `KeyboardMotionSensor`. Currently both keyboard sensors start drag when _any_ element is focused and the start key is pressed. You have to provide a custom start predicate to listen for a specific element's focused state when trying to start the drag. In practice, most of the time, you probably want to start ther drag on specific element's focused state which is why we refactored both the sensors to require an element as the first argument.
- Refactor all public and internal rectangle types and data.
   - Rename `Rect` properties: `left` -> `x` and `top` -> `y`.
   - Rename `RectExtended` to `RectFull` and add `x` and `y` properties to it.
   - Use only `Rect` data type in public facing APIs.
   - These new types are now more in line with the native DOM data types: `RectFull` mirrors [`DOMRect`](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect) and `Rect` mirrors the argument type of [`DomRect.fromRect`](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/fromRect_static) being the minimum representation of rectangle data.
- Update docs + tests.
- Add `cancelOnBlur` and `cancelOnVisibilityChange` options to both `KeyboardSensor` and `KeyboardMotionSensor`. Previously they were always enabled and you could not configure them, and they were broken also.
- Export the default settings of `KeyboardSensor` and `KeyboardMotionSensor`.

0.3.0

Toggle 0.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
v0.3.0 (#7)

0.2.0

Toggle 0.2.0's commit message
Update .prettierignore.

0.1.0

Toggle 0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v0.1.0 (#3)

* Refactored API (quite many breaking changes).
* Improved TS typing.
* Updated docs and dependencies.
* Updated logo.
* Added some initial tests (although tests in general are still a work in progress).
* Fixed an issue with auto-scrolling where it could not always detect the end of the scroll.