Commit Graph

5 Commits

Author SHA1 Message Date
Sami Jaktholm
faf8c2b61a Bug 1160720 - Stop dragging the color selector around if no buttons are pressed down on mousemove. r=bgrins
The color picker stops following the mouse when it receives a mouseup event.
However, in some cases when the mouse button is released outside the color
picker frame, the picker won't know about it and will continue to move the
selection when mouse comes back over the picker frame.

As the MouseEvent.buttons property specifies which buttons are pressed when
the event occurs the picker can use said property to detect if it should stop
following the mouse. When .buttons === 0 on a mousemove event no buttons are
pressed down and it should stop following the mouse.
2015-05-06 16:58:20 -07:00
Dave Townsend
5c3bb92f20 Bug 983847: Frequent CSS errors in spectrum-frame.xhtml. r=pbrosset 2014-03-18 09:18:02 -07:00
J. Ryan Stinnett
26967f4282 Bug 976679 - Move event-emitter to toolkit. r=paul 2014-02-25 22:22:05 -06:00
Brian Grinstead
2f24e9af5a Bug 972064 - Fix Spectrum.js warning in browser console. r=jwalker 2014-02-13 11:54:05 -06:00
Patrick Brosset
a2c1894088 Bug 889638 - Color picker tooltip in the CSS rule view. r=harth 2013-11-15 21:46:59 -05:00