Download Latest Version v1.1.1 source code.zip (33.6 kB)
Email in envelope

Get an email when there's a new version of DOM Window Manager

Home / v1.1.1
Name Modified Size InfoDownloads / 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

  • dragElement now 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

Source: README.md, updated 2025-04-11