Skip to content

Commit

Permalink
remote is not multitouch anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sukrieh committed Oct 9, 2010
1 parent 7e5e466 commit 7f16f2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 6 additions & 9 deletions views/layouts/main.tt
Expand Up @@ -32,17 +32,14 @@


<% if is_multi_touch %> <% if is_multi_touch %>
<div id="remote"> <div id="remote">
REMOTE : <% request.agent %>
<div style="position: absolute; width: 600px; left: 0; bottom: 0; font-size: 60px; background-color: #eee;">
<a href="#" style="color: #000; " onclick="broadway_prev();broadway_refresh(); return(false);">PREV</a>
&nbsp;
<a href="#" style="color: #000;" onclick="broadway_next(); broadway_refresh();return(false);">NEXT</a>
</div>
</div> </div>
<% end %> <% end %>


<table>
<tr>
<td>
<div style="font-size: 18px;" id="previous_slide">
</div>
</tr>
</table>

</body> </body>
</html> </html>
5 changes: 5 additions & 0 deletions views/slideshow.tt
Expand Up @@ -4,6 +4,7 @@ window.slide = 0;
<% if is_multi_touch %> <% if is_multi_touch %>
window.broadway_effects = 0; window.broadway_effects = 0;


/*
document.addEventListener('touchmove', function(event) { document.addEventListener('touchmove', function(event) {
event.preventDefault(); event.preventDefault();
point_x = event.touches[0].pageX; point_x = event.touches[0].pageX;
Expand All @@ -18,6 +19,8 @@ document.addEventListener('touchmove', function(event) {
broadway_refresh(); broadway_refresh();
} }
}, false); }, false);
*/



<% else %> <% else %>


Expand All @@ -43,3 +46,5 @@ window.setInterval(function() {


<div id="slide"> <div id="slide">
</div> </div>


0 comments on commit 7f16f2e

Please sign in to comment.