mirror of
https://github.com/wekan/wekan.git
synced 2026-02-22 07:54:06 +01:00
Implement click-and-drag integration to translate the board canvas
Fixes #232
This commit is contained in:
parent
b5dabfe886
commit
5eb67e803a
3 changed files with 57 additions and 12 deletions
|
|
@ -4,6 +4,8 @@
|
|||
// escape we execute the action which have a valid condition and his the highest
|
||||
// in the label hierarchy.
|
||||
EscapeActions = {
|
||||
_nextclickPrevented: false,
|
||||
|
||||
_actions: [],
|
||||
|
||||
// Executed in order
|
||||
|
|
@ -60,12 +62,20 @@ EscapeActions = {
|
|||
},
|
||||
|
||||
clickExecute: function(target, maxLabel) {
|
||||
return this._execute({
|
||||
maxLabel: maxLabel,
|
||||
multipleActions: false,
|
||||
isClick: true,
|
||||
clickTarget: target
|
||||
});
|
||||
if (this._nextclickPrevented) {
|
||||
this._nextclickPrevented = false;
|
||||
} else {
|
||||
return this._execute({
|
||||
maxLabel: maxLabel,
|
||||
multipleActions: false,
|
||||
isClick: true,
|
||||
clickTarget: target
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
preventNextClick: function() {
|
||||
this._nextclickPrevented = true;
|
||||
},
|
||||
|
||||
_stopClick: function(action, clickTarget) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue