Skip to content

Commit

Permalink
Prevent Default on Drag (#382)
Browse files Browse the repository at this point in the history
* 2.13.2

* Always Prevent Default
  • Loading branch information
casesandberg authored Jul 18, 2017
1 parent b1e588a commit 9c9692a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/alpha.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/hue.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/saturation.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9c9692a

Please sign in to comment.