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

Turn off programmatically #11

Open
leebenson opened this issue Aug 3, 2016 · 1 comment
Open

Turn off programmatically #11

leebenson opened this issue Aug 3, 2016 · 1 comment

Comments

@leebenson
Copy link

I'm using touch-emulator with React, inside a componentWillMount block (with a test to see if window is available - since this is a universal app that also renders on the server.)

Instead of immediately latching to document, it'd be great to return an instance that could be controlled programmatically.

Specifically, I'd like to create a toggle for turning touch on/off, so I can play with components as both desktop and mobile-simulated.

@hashchange
Copy link

I am not sure if this project is still alive, with zero activity or responses for almost two years.

If it is dead, you can use the updated version in my fork (feature-detach branch), e.g. with

bower install TouchEmulator=https://github.com/hashchange/touchemulator.git#feature-detach

or

npm install hashchange/touchemulator#feature-detach

My additions are covered by tests, and the readme is updated to reflect the changes.

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

No branches or pull requests

2 participants