Skip to content

Commit 7204cad

Browse files
committed
fixed xy / z_slider mixup in preRender
1 parent 21cdb71 commit 7204cad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jqColorPicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@
206206
colorText = _color.toString(_$trigger._colorMode, _options.forceAlpha),
207207
HUEContrast = colors.HUELuminance > 0.22 ? dark : light,
208208
alphaContrast = colors.rgbaMixBlack.luminance > 0.22 ? dark : light,
209-
h = (1 - colors.hsv.h) * _$xy_slider._height,
209+
h = (1 - colors.hsv.h) * _$z_slider._height,
210210
s = colors.hsv.s * _$xy_slider._width,
211-
v = (1 - colors.hsv.v) * _$z_slider._height,
211+
v = (1 - colors.hsv.v) * _$xy_slider._height,
212212
a = colors.alpha * _$alpha._width,
213213
translate3d = _GPU ? 'translate3d' : '',
214214
triggerValue = _$trigger[0].value,

0 commit comments

Comments
 (0)