Skip to content

Commit

Permalink
Fixed ColorPicker flickering due to offset
Browse files Browse the repository at this point in the history
since it sits on the little selection bar
it causes flickering
  • Loading branch information
tj committed Feb 3, 2012
1 parent ceacf44 commit a4dd583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/color-picker/color-picker.js
Expand Up @@ -106,7 +106,7 @@ ColorPicker.prototype.spectrumEvents = function(){
, down;

function update(e) {
var color = self.hueAt(e.offsetY);
var color = self.hueAt(e.offsetY - 4);
self.hue(color.toString());
self.emit('change', color);
self._huePos = e.offsetY;
Expand Down

0 comments on commit a4dd583

Please sign in to comment.