Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup single touchmove event listener #130

Closed
wants to merge 2 commits into from

Conversation

hartzis
Copy link
Collaborator

@hartzis hartzis commented Mar 14, 2019

WIP

Setup single touchmove listener and setup the touchmove before any swiping starts.

alternate solution for #127. other possible solution is #129

Additional fixes:

  • also fixes this bug that should allow for false when touchHandlerOption prop is not undefined
    • this is a fix when/if users pass in false when an options object is not supported
      • ie. older browsers

Tasks:

  • update/add tests
  • fix example(s)

@@ -47,12 +47,52 @@ function rotateXYByAngle(pos, angle) {
}

const getTouchHandlerOption = props => {
if (props.touchHandlerOption) return props.touchHandlerOption
if (typeof props.touchHandlerOption !== 'undefined')
Copy link
Collaborator Author

@hartzis hartzis Mar 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug Fix: should allow for false for touchHandlerOption prop. Specifically when options and passive aren't supported by the browser being used.

<input style={{margin: "0px"}}
type="checkbox"
checked={showComponent}
onChange={(e)=>this.updateValue('showComponent', e.target.checked)}/>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the showHook and the showComponent options in the examples to verify the cleanUp functionality

@hartzis hartzis mentioned this pull request Mar 18, 2019
3 tasks
@hartzis
Copy link
Collaborator Author

hartzis commented Mar 18, 2019

closing in favor of #131

@hartzis hartzis closed this Mar 18, 2019
@hartzis hartzis deleted the preventdefault-touch-ios-fix branch June 26, 2020 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant