Skip to content

Commit

Permalink
Bootstrap to 4.5.2
Browse files Browse the repository at this point in the history
Updates from @michael-maltsev

Improved Draggable - Prevents interactions with the rest of the page while dragging.
Keyboard Revert -
Because:

It's already implemented by handling keyup.
It doesn't handle other cases such as a non-closable dialog.
It cannot be changed dynamically.
  • Loading branch information
GedMarc committed Oct 12, 2020
1 parent 53a013d commit ac292f8
Show file tree
Hide file tree
Showing 17 changed files with 10,704 additions and 2,858 deletions.
2 changes: 1 addition & 1 deletion .bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap4-dialog",
"description": "Make use of Bootstrap Modal more monkey-friendly. http://nakupanda.github.io/bootstrap3-dialog/ updated to bootstrap4",
"version": "4.3.4",
"version": "4.3.8",
"keywords": [
"css",
"js",
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap4-dialog",
"description": "Make use of Bootstrap Modal more monkey-friendly. https://github.com/GedMarc/bootstrap4-dialog",
"version": "4.3.4",
"version": "4.3.8",
"keywords": [
"css",
"js",
Expand Down
148 changes: 74 additions & 74 deletions dist/css/bootstrap-dialog.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/css/bootstrap-dialog.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/js/bootstrap-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1161,18 +1161,21 @@
left: event.clientX - dialogOffset.left
};
});
this.getModal().on('mouseup mouseleave', { dialog: this }, function (event) {
this.getModal().on('mouseup', { dialog: this }, function (event) {
event.data.dialog.draggableData.isMouseDown = false;
});
$('body').on('mousemove', { dialog: this }, function (event) {
var dialog = event.data.dialog;
if (!dialog.draggableData.isMouseDown) {
return;
}
event.preventDefault();
dialog.getModalDialog().offset({
top: event.clientY - dialog.draggableData.mouseOffset.top,
left: event.clientX - dialog.draggableData.mouseOffset.left
});
}).on('mouseleave', { dialog: this }, function (event) {
event.data.dialog.draggableData.isMouseDown = false;
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/bootstrap-dialog.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ac292f8

Please sign in to comment.