bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-10-19 05:30:15 +03:00
parent 45455c5c64
commit ea9e16e29e

View File

@ -1361,8 +1361,8 @@ var pWikiUIActions = actions.Actions({
var wiki = this.page var wiki = this.page
elems elems
.sortable({ .sortable({
handle: ".sort-handle", handle: '.sort-handle',
placeholder: "sort-placeholder", placeholder: 'sort-placeholder',
forcePlaceholderSize: true, forcePlaceholderSize: true,
axis: 'y', axis: 'y',
@ -1380,6 +1380,10 @@ var pWikiUIActions = actions.Actions({
.order('save') .order('save')
}, },
}) })
// NOTE: we are only adding touch to the active elements
// to avoid the side-effect of it canceling the default
// behaviour (i.e. scrolling)...
.find('.sort-handle')
.addTouch() .addTouch()
}, },
// title editor... // title editor...