Skip to content

Commit

Permalink
Fox color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Scavanger committed Apr 27, 2024
1 parent e1faf6a commit 02b0e37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tabs/led_strip.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {

$('.colors').on('dblclick', 'button', function(e) {

var pp = $('.tab-led-strip').position();
var moveLeft = $('.tab-led-strip').position().left + ($('.colorDefineSliders').width() / 2);
var moveUp = $('.tab-led-strip').position().top + $('.colorDefineSliders').height() + 20;
var moveLeft = $('.tab-led-strip').offset().left + ($('.colorDefineSliders').width() / 2);
var moveUp = $('.tab-led-strip').offset().top + $('.colorDefineSliders').height() + 20;

$('.colorDefineSliders').css('left', e.pageX - e.offsetX - moveLeft);
$('.colorDefineSliders').css('top', e.pageY - e.offsetY - moveUp);
Expand Down

0 comments on commit 02b0e37

Please sign in to comment.