| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2025-04-11 | 811 Bytes | |
| v1.1.1 source code.tar.gz | 2025-04-11 | 32.9 kB | |
| v1.1.1 source code.zip | 2025-04-11 | 33.6 kB | |
| Totals: 3 Items | 67.3 kB | 0 | |
๐ฆ v1.1.1 โ Optional Drag Handle Support
Release Date: April 2025
๐ New Feature
dragElementnow accepts an optional second parameter: a drag handle.- You can now call
dragElement(element, handle)to restrict dragging to a specific sub-element (e.g., a window header). - If no handle is passed, the function defaults to making the entire element draggable โ maintaining full backward compatibility.
โ Example
:::ts
// Restrict dragging to the header only
dragElement(myWindow, myWindowHeader);
// Keep old behavior: make whole window draggable
dragElement(myWindow);
๐ Documentation
The README.md has been updated to reflect this new feature with a clear example.
๐งน Other
Internal cleanup and TypeScript version update