DavidDurman / FlexiColorPicker

A pure JavaScript color picker - no images, external libraries, CSS or 1px divs.
http://www.daviddurman.com/flexi-color-picker/
414 stars 149 forks source link

picker indicator has different behavior in minified version, but normal version works properly. #36

Closed miaulightouch closed 7 years ago

miaulightouch commented 7 years ago

when I use minified js, the picker indicator would go out of the picker range. if I set a 200px square picker element, when mouse move to left: 0, indicator would go to left: -200px normal colorpicker js just work perfectly.

miaulightouch commented 7 years ago

use uglifyjs to minify, and anything works.

uglifyjs colorpicker.js -o colorpicker.min.js -m -c