Browse Source

Don't open the menu if dragged from the top bar

pull/436/head
Timothée Jaussoin 8 years ago
parent
commit
49d5666275
  1. 4
      app/assets/js/movim_tpl.js

4
app/assets/js/movim_tpl.js

@ -130,10 +130,12 @@ var MovimTpl = {
document.body.addEventListener('touchstart', function(event) {
startX = event.targetTouches[0].pageX;
startY = event.targetTouches[0].pageY;
if(
(
startX < 10 ||
(startX < 10 && startY > 56)
||
(nav.classList.contains('active') && startX > document.body.clientWidth - 50)
)
&& MovimTpl.dragged == false) {

Loading…
Cancel
Save