Skip to content

Commit

Permalink
Remove preventDefault on passive events (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg authored Apr 29, 2019
1 parent ec6e6bc commit c58e354
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/helpers/alpha.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const calculateChange = (e, hsl, direction, initialA, container) => {
e.preventDefault()
const containerWidth = container.clientWidth
const containerHeight = container.clientHeight
const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX
Expand Down
1 change: 0 additions & 1 deletion src/helpers/hue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const calculateChange = (e, direction, hsl, container) => {
e.preventDefault()
const containerWidth = container.clientWidth
const containerHeight = container.clientHeight
const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX
Expand Down
1 change: 0 additions & 1 deletion src/helpers/saturation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const calculateChange = (e, hsl, container) => {
e.preventDefault()
const { width: containerWidth, height: containerHeight } = container.getBoundingClientRect()
const x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX
const y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY
Expand Down

0 comments on commit c58e354

Please sign in to comment.