You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be a stupid question, so, feel free to tell me so :)
I'm working on an app that has a tableView inside of a draggableView. Everything works flawlessly until I added the ability to rearrange items in the table. It seems like when I'm rearranging items it's firing the start/move/end events on the draggable view (and I can only move the rows about 10px up and down from their original position).
My first thought was that's fine becuase I can just set bubbleParent to false on the table and it won't fire other events, but that didn't work. Here's what I tried:
1) On setting the table to moveable:
Set the DraggableView to enabled:false
2) On setting the table to moveable:
Set the DraggableView to enabled:false
Set the tableView to bubbleParent: false
3) On setting the table to moveable:
Set the DraggableView to enabled:false
Set the tableView to bubbleParent: false
Add the tableView to another view, and setting that to bubbleParent false as well
None of those seemed to work unfortunately.
I was curious if you had any suggestions that may point me in the right direction?
Also thanks for this amazing module :)
The text was updated successfully, but these errors were encountered:
I'm going to leave this ticket open for now, but for a reference I've made a change that allows me to really disable and re-enable the draggable view by adding a function to add/remove the gesture recognizer.
// Example button to enable moving on the table
move_button.addEventListener("click", function(e){
DraggableView.draggable.removeGesture();
table_view.moving = true;
});
// Example button to disable moving on the table
done_button.addEventListener("click", function(e){
DraggableView.draggable.addGesture();
table_view.moving = false;
});
This could be a stupid question, so, feel free to tell me so :)
I'm working on an app that has a tableView inside of a draggableView. Everything works flawlessly until I added the ability to rearrange items in the table. It seems like when I'm rearranging items it's firing the start/move/end events on the draggable view (and I can only move the rows about 10px up and down from their original position).
My first thought was that's fine becuase I can just set bubbleParent to false on the table and it won't fire other events, but that didn't work. Here's what I tried:
1) On setting the table to moveable:
Set the DraggableView to enabled:false
2) On setting the table to moveable:
Set the DraggableView to enabled:false
Set the tableView to bubbleParent: false
3) On setting the table to moveable:
Set the DraggableView to enabled:false
Set the tableView to bubbleParent: false
Add the tableView to another view, and setting that to bubbleParent false as well
None of those seemed to work unfortunately.
I was curious if you had any suggestions that may point me in the right direction?
Also thanks for this amazing module :)
The text was updated successfully, but these errors were encountered: