Skip to content

Commit

Permalink
feat: add cancelDefaults in ViewConfigBuilder (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
luapascoal authored May 6, 2024
1 parent 511688b commit b3b3c98
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ public ViewConfigBuilder cancelOnDrag() {
return addOption(ViewConfig.CANCEL_ON_DRAG);
}

/**
* Cancels all default interactions with the view.
*
* @return This configuration builder.
*/
public ViewConfigBuilder cancelDefaults() {
return cancelOnClick().cancelOnPickup().cancelOnDrop().cancelOnDrag();
}

/**
* Schedules the view to update every fixed interval.
*
Expand Down

0 comments on commit b3b3c98

Please sign in to comment.