Skip to content

Commit

Permalink
test out mobile touch
Browse files Browse the repository at this point in the history
  • Loading branch information
hchiam committed Oct 30, 2019
1 parent 9239ffd commit 487f15e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
<section class="center">
<h1>Howard T. Chiam</h1>
<p>Learning. Languages.</p>
<div id="draggable" draggable ondragstart="showGameButtons();playNotes();" ondrag="adjustNotes();">
<div id="draggable"
draggable
ondragstart="showGameButtons();playNotes();"
ondrag="adjustNotes();"
ontouchstart="showGameButtons();playNotes();"
ontouchmove="adjustNotes();"
ontouchend="stopNotes()">
<button id="a" onclick="window.open('https:\/\/github.com/hchiam', '_blank');">GitHub</button>
<button id="s" onclick="window.open('https:\/\/codepen.io/hchiam', '_blank');">CodePen</button>
<button id="d" onclick="window.open('https:\/\/glitch.com/@hchiam', '_blank');">Glitch</button>
Expand Down

1 comment on commit 487f15e

@hchiam
Copy link
Owner Author

@hchiam hchiam commented on 487f15e Oct 30, 2019

Choose a reason for hiding this comment

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

tried to fix #9 but not dragging

Please sign in to comment.