update build and changelog

This commit is contained in:
Jeff Nusz 2016-10-05 13:00:05 -07:00
parent 6f0fcb64f5
commit de8f4d1fe3
4 changed files with 14 additions and 13 deletions

View File

@ -1,5 +1,9 @@
## Changelog
### 0.6.1
* Fixed issue with color picker not working on a page that has scrolled. #37
* Fixed issue with sliders created with min()/max() not remembering their name or to listen. #107
### 0.6.0
* Ported to ES6
* Exported using Universal Module Definition (UMD) for max compatibility (Commonjs, Requirejs, AMD, global var)

View File

@ -2096,10 +2096,9 @@ return /******/ (function(modules) { // webpackBootstrap
function onMouseDrag(e) {
e.preventDefault();
var offset = _dom2.default.getOffset(_this.__background);
var width = _dom2.default.getWidth(_this.__background);
var bgRect = _this.__background.getBoundingClientRect();
_this.setValue(map(e.clientX, offset.left, offset.left + width, _this.__min, _this.__max));
_this.setValue(map(e.clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
return false;
}
@ -2442,10 +2441,9 @@ return /******/ (function(modules) { // webpackBootstrap
function setSV(e) {
e.preventDefault();
var w = _dom2.default.getWidth(_this.__saturation_field);
var o = _dom2.default.getOffset(_this.__saturation_field);
var s = (e.clientX - o.left + document.body.scrollLeft) / w;
var v = 1 - (e.clientY - o.top + document.body.scrollTop) / w;
var fieldRect = _this.__saturation_field.getBoundingClientRect();
var s = (e.clientX - fieldRect.left) / (fieldRect.right - fieldRect.left);
var v = 1 - (e.clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
if (v > 1) {
v = 1;
@ -2470,9 +2468,8 @@ return /******/ (function(modules) { // webpackBootstrap
function setH(e) {
e.preventDefault();
var s = _dom2.default.getHeight(_this.__hue_field);
var o = _dom2.default.getOffset(_this.__hue_field);
var h = 1 - (e.clientY - o.top + document.body.scrollTop) / s;
var fieldRect = _this.__hue_field.getBoundingClientRect();
var h = 1 - (e.clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
if (h > 1) {
h = 1;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long