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

Add touch support #47

Open
wants to merge 1 commit into
base: master
from

Conversation

@sjmathew
Copy link

sjmathew commented Nov 17, 2018

#39

@@ -6,6 +6,42 @@ import background from '../img/wallpapers/adwaita-day.jpg';
if (window.moment === undefined) window.moment = moment;

class LockScreen extends Component {

var containerStart = document.getElementsByClassName("box Lock-container");
containerStart.addEventListener("touchstart", touchStartHandler, false);

This comment has been minimized.

Copy link
@felipemarinho97

felipemarinho97 Nov 22, 2018

Owner

Why not initialize that inside some function?

containerEnd.addEventListener("touchend", touchEndHandler, false);


var totalTouches = {};

This comment has been minimized.

Copy link
@felipemarinho97

felipemarinho97 Nov 22, 2018

Owner

The state related logic must be on this.state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.