Skip to content

Commit

Permalink
0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Oppermann committed May 26, 2018
1 parent 28dc599 commit ba1aea6
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
5 changes: 3 additions & 2 deletions dist/html5sortable.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,13 @@ define(function () { 'use strict';
// To avoid flicker, determine where to position the placeholder
// based on where the mouse pointer is relative to the elements
// vertical center.
var placeAfter = false;
try {
var elementMiddle = offset(element).top + element.offsetHeight / 2;
var placeAfter = pageY >= elementMiddle;
placeAfter = pageY >= elementMiddle;
}
catch (e) {
var placeAfter = placeholderIndex < thisIndex;
placeAfter = placeholderIndex < thisIndex;
}
if (placeAfter) {
insertAfter(element, store(sortableElement).placeholder);
Expand Down
5 changes: 3 additions & 2 deletions dist/html5sortable.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,13 @@ function sortable(sortableElements, options) {
// To avoid flicker, determine where to position the placeholder
// based on where the mouse pointer is relative to the elements
// vertical center.
var placeAfter = false;
try {
var elementMiddle = offset(element).top + element.offsetHeight / 2;
var placeAfter = pageY >= elementMiddle;
placeAfter = pageY >= elementMiddle;
}
catch (e) {
var placeAfter = placeholderIndex < thisIndex;
placeAfter = placeholderIndex < thisIndex;
}
if (placeAfter) {
insertAfter(element, store(sortableElement).placeholder);
Expand Down
5 changes: 3 additions & 2 deletions dist/html5sortable.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,12 +1017,13 @@ function sortable(sortableElements, options) {
// To avoid flicker, determine where to position the placeholder
// based on where the mouse pointer is relative to the elements
// vertical center.
var placeAfter = false;
try {
var elementMiddle = offset(element).top + element.offsetHeight / 2;
var placeAfter = pageY >= elementMiddle;
placeAfter = pageY >= elementMiddle;
}
catch (e) {
var placeAfter = placeholderIndex < thisIndex;
placeAfter = placeholderIndex < thisIndex;
}
if (placeAfter) {
insertAfter(element, store(sortableElement).placeholder);
Expand Down
5 changes: 3 additions & 2 deletions dist/html5sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,13 @@ var sortable = (function () {
// To avoid flicker, determine where to position the placeholder
// based on where the mouse pointer is relative to the elements
// vertical center.
var placeAfter = false;
try {
var elementMiddle = offset(element).top + element.offsetHeight / 2;
var placeAfter = pageY >= elementMiddle;
placeAfter = pageY >= elementMiddle;
}
catch (e) {
var placeAfter = placeholderIndex < thisIndex;
placeAfter = placeholderIndex < thisIndex;
}
if (placeAfter) {
insertAfter(element, store(sortableElement).placeholder);
Expand Down
2 changes: 1 addition & 1 deletion dist/html5sortable.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/html5sortable.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/html5sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,13 @@ var sortable = (function () {
// To avoid flicker, determine where to position the placeholder
// based on where the mouse pointer is relative to the elements
// vertical center.
var placeAfter = false;
try {
var elementMiddle = offset(element).top + element.offsetHeight / 2;
var placeAfter = pageY >= elementMiddle;
placeAfter = pageY >= elementMiddle;
}
catch (e) {
var placeAfter = placeholderIndex < thisIndex;
placeAfter = placeholderIndex < thisIndex;
}
if (placeAfter) {
insertAfter(element, store(sortableElement).placeholder);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "dist/html5sortable.js",
"file": "src/html5sortable.ts",
"dest": "dist",
"version": "0.9.2",
"version": "0.9.3",
"license": "MIT",
"description": "VanillaJS sortable lists and grids using native HTML5 drag and drop API.",
"author": {
Expand Down

0 comments on commit ba1aea6

Please sign in to comment.