Fix drag left event
This commit is contained in:
parent
414ebae75a
commit
6164ac4b33
@ -38,7 +38,8 @@
|
|||||||
progress: i*10
|
progress: i*10
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
tasks[0].dependencies = 'Task2, Task3';
|
tasks[1].dependencies = 'Task1';
|
||||||
|
tasks[2].dependencies = 'Task2';
|
||||||
|
|
||||||
var gantt_chart = gantt("#gantt", tasks, {
|
var gantt_chart = gantt("#gantt", tasks, {
|
||||||
date_format: "YYYY-MM-DD",
|
date_format: "YYYY-MM-DD",
|
||||||
|
|||||||
@ -1391,7 +1391,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var bar = self.$bar;
|
var bar = self.$bar;
|
||||||
bar.finaldx = get_snap_position(dx);
|
bar.finaldx = get_snap_position(dx);
|
||||||
update_bar_position(bar.ox + bar.finaldx, bar.owidth - bar.finaldx);
|
update_bar_position(bar.ox + bar.finaldx, bar.owidth - bar.finaldx);
|
||||||
run_method_for_dependencies('onmove_handle_left', [dx, dy]);
|
run_method_for_dependencies('onmove', [dx, dy]);
|
||||||
}
|
}
|
||||||
self.onmove_handle_left = onmove_handle_left;
|
self.onmove_handle_left = onmove_handle_left;
|
||||||
|
|
||||||
@ -1399,7 +1399,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var bar = self.$bar;
|
var bar = self.$bar;
|
||||||
if (bar.finaldx) date_changed();
|
if (bar.finaldx) date_changed();
|
||||||
set_action_completed();
|
set_action_completed();
|
||||||
run_method_for_dependencies('onstop_handle_left');
|
run_method_for_dependencies('onstop');
|
||||||
}
|
}
|
||||||
self.onstop_handle_left = onstop_handle_left;
|
self.onstop_handle_left = onstop_handle_left;
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -296,7 +296,7 @@ export default function Bar(gt, task) {
|
|||||||
const bar = self.$bar;
|
const bar = self.$bar;
|
||||||
bar.finaldx = get_snap_position(dx);
|
bar.finaldx = get_snap_position(dx);
|
||||||
update_bar_position(bar.ox + bar.finaldx, bar.owidth - bar.finaldx);
|
update_bar_position(bar.ox + bar.finaldx, bar.owidth - bar.finaldx);
|
||||||
run_method_for_dependencies('onmove_handle_left', [dx, dy]);
|
run_method_for_dependencies('onmove', [dx, dy]);
|
||||||
}
|
}
|
||||||
self.onmove_handle_left = onmove_handle_left;
|
self.onmove_handle_left = onmove_handle_left;
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ export default function Bar(gt, task) {
|
|||||||
const bar = self.$bar;
|
const bar = self.$bar;
|
||||||
if (bar.finaldx) date_changed();
|
if (bar.finaldx) date_changed();
|
||||||
set_action_completed();
|
set_action_completed();
|
||||||
run_method_for_dependencies('onstop_handle_left');
|
run_method_for_dependencies('onstop');
|
||||||
}
|
}
|
||||||
self.onstop_handle_left = onstop_handle_left;
|
self.onstop_handle_left = onstop_handle_left;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user