Commit graph

22 commits

Author SHA1 Message Date
Andy O'Neill
ffcd546474 feat: add quaternary color for selected dropdowns 2023-03-02 13:46:07 -05:00
adroitwhiz
88e3d72be3 Use internal color slider HSB for slider callbacks 2020-05-11 11:47:43 -04:00
Paul Kaplan
74704ec269 Use click event to avoid gesture problems freezing workspace 2019-08-07 14:35:28 -04:00
Karishma Chadha
0aa6869080 Conditionally turn off slider handle callbacks. 2018-12-11 17:24:51 -05:00
Paul Kaplan
2b7bb62cd3 Move binding callbacks below showing dropdown div so sliders update
They were not updating because the component does not update if it is not visible in the DOM
2018-12-11 14:27:54 -05:00
Paul Kaplan
1215b47fb3 Fix extra events being emitted from the color slider 2018-12-10 17:15:57 -05:00
Rachel Fenichel
fc0da3e070 All remaining lint in core 2018-05-02 15:32:28 -07:00
Rachel Fenichel
413faaa778 Switch to Blockly.Field.fromJson 2018-04-17 14:15:18 -07:00
ivanixgames
063b0a0669 - 3rd patch for issue 1381
- Removed saturation conversion patch
  - setMoveToPointEnabled patch left in place
  - Converted css property margin-top to top in .goog-slider-horizontal .goog-slider-thumb
2018-03-08 15:56:21 +08:00
ivanixgames
48480ea6e0 - 2nd fix for issue 1381
-  call method setMoveToPointEnabled instead of changing (private) property directlly
2018-02-12 03:17:10 +08:00
ivanixgames
6993b85ff3 Fix for issue 1381
- Move thumb to position of mouse click or tap
- Fix saturation slider which was trying to use range of 0 to 1 and
  steps in fractions of whole number.
  google closure slider (sliderbase) can only handle integer values.
2018-02-12 02:52:55 +08:00
Paul Kaplan
678aa9d805 Update the color sliders when eyedropper changes the value.
The hsv slider values are intentionally kept separate from the field
value so they are more stable when changed. They are initialized when
the editor is opened and only updated by the sliders. This was causing
the sliders not to update when a new color was chosen via eyedropper. To
get around this, manually update the internal hsv values when coming
back from the eyedropper callback so that the sliders get updated (which
happens in setValue).
2018-01-19 10:23:09 -05:00
Rachel Fenichel
ed072e258c Return early from field init if the field has already been initialized. 2017-11-16 14:27:31 -08:00
Paul Kaplan
334baaf175 Use "Color" instead of "Hue" as the slider color input. 2017-10-23 16:40:30 -04:00
Paul Kaplan
6fd99e21a8 Fix the ranges on the sliders to go the entire range. 2017-10-18 12:36:54 -04:00
Paul Kaplan
33f994288a Use hsv to track color value while in editor 2017-10-18 09:57:52 -04:00
Paul Kaplan
5f8184d253 Fix minor issues and remove opt_isSlider from setValue 2017-09-21 11:27:56 -04:00
Paul Kaplan
f1d6bbde49 Fix eyedropper code for slider colour picker 2017-09-19 10:54:21 -04:00
Paul Kaplan
c94a5e37f6 Add default case to switch 2017-09-19 10:34:32 -04:00
Paul Kaplan
27782c97c6 Fix dispose function 2017-09-19 10:34:32 -04:00
Paul Kaplan
4fc463bafd Mark things as private 2017-09-19 10:34:32 -04:00
Paul Kaplan
468bff28c7 Move new slider picker into new field_colour_slider field file 2017-09-19 10:34:32 -04:00