Aleksander Machniak
2015-06-17 3f4521bcf4b538b6ac54817cfad22b51e347546d
program/js/list.js
@@ -151,10 +151,15 @@
    this.rows[uid] = {uid:uid, id:row.id, obj:row};
    // set eventhandlers to table row (only left-button-clicks in mouseup)
    row.onmousedown = function(e){ return self.drag_row(e, this.uid); };
    row.onmouseup = function(e){ if (e.which == 1) return self.click_row(e, this.uid); };
    $(row).mousedown(function(e) { return self.drag_row(e, this.uid); })
      .mouseup(function(e) {
        if (e.which == 1 && !self.drag_active)
          return self.click_row(e, this.uid);
        else
          return true;
      });
    if (bw.touch) {
    if (bw.touch && row.addEventListener) {
      row.addEventListener('touchstart', function(e) {
        if (e.touches.length == 1) {
          self.touchmoved = false;