From 9c9692a100c07038669bb0f2dc31c09fba12115b Mon Sep 17 00:00:00 2001 From: case Date: Tue, 18 Jul 2017 11:28:54 -0700 Subject: [PATCH] Prevent Default on Drag (#382) * 2.13.2 * Always Prevent Default --- package.json | 2 +- src/helpers/alpha.js | 2 +- src/helpers/hue.js | 2 +- src/helpers/saturation.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 85268923..aa9363ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-color", - "version": "2.13.1", + "version": "2.13.2", "description": "A Collection of Color Pickers from Sketch, Photoshop, Chrome & more", "main": "lib/index.js", "repository": { diff --git a/src/helpers/alpha.js b/src/helpers/alpha.js index 0b9031dd..f6f51815 100644 --- a/src/helpers/alpha.js +++ b/src/helpers/alpha.js @@ -1,5 +1,5 @@ export function calculateChange(e, skip, props, container) { - !skip && e.preventDefault() + e.preventDefault() const containerWidth = container.clientWidth const containerHeight = container.clientHeight const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX diff --git a/src/helpers/hue.js b/src/helpers/hue.js index 1f4d732f..31f576e8 100644 --- a/src/helpers/hue.js +++ b/src/helpers/hue.js @@ -1,5 +1,5 @@ export function calculateChange(e, skip, props, container) { - !skip && e.preventDefault() + e.preventDefault() const containerWidth = container.clientWidth const containerHeight = container.clientHeight const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX diff --git a/src/helpers/saturation.js b/src/helpers/saturation.js index fb8b2a31..67cdd45e 100644 --- a/src/helpers/saturation.js +++ b/src/helpers/saturation.js @@ -1,5 +1,5 @@ export function calculateChange(e, skip, props, container) { - !skip && e.preventDefault() + e.preventDefault() const containerWidth = container.clientWidth const containerHeight = container.clientHeight const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX