SharanRP · GitHub

@SharanRP

@SharanRP

Merged

@SharanRP

@mrobinson

@mrobinson mrobinson changed the title Fix :active state persistence when flex order changes during mousedown script: Track the element that has the :active state across input events

May 9, 2026

mrobinson

mrobinson

@mrobinson

Track the activated element on mousedown and only clear :active on mouseup,
instead of incorrectly clearing it on mousemove when hover target changes.
Signed-off-by: SharanRP <z8903830@gmail.com>
Signed-off-by: SharanRP <z8903830@gmail.com>
Signed-off-by: SharanRP <z8903830@gmail.com>
Signed-off-by: SharanRP <z8903830@gmail.com>
- Simplify test and make it explicitly test the issue in question
- Consistently set and unset the active element and only when the left
  mouse button is pressed / on touch events
Signed-off-by: Martin Robinson <martin@abandonedwig.info>

@mrobinson

@mrobinson

Read the original on github.com ↗