Minor hacks in select.
This commit is contained in:
parent
4097119d25
commit
e9aa3b8743
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
html.drag-select, html.drag-select * {
|
html.drag-select, html.drag-select * {
|
||||||
cursor: move !important;
|
cursor: move !important;
|
||||||
|
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -198,6 +198,11 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
|
|||||||
|
|
||||||
$('#content')
|
$('#content')
|
||||||
.on('mousedown', selectionStart)
|
.on('mousedown', selectionStart)
|
||||||
|
.on('drag dragstart', function (ev) {
|
||||||
|
|
||||||
|
ev.stopImmediatePropagation();
|
||||||
|
ev.preventDefault();
|
||||||
|
})
|
||||||
.on('click', function (ev) {
|
.on('click', function (ev) {
|
||||||
|
|
||||||
$('#items .item').removeClass('selected');
|
$('#items .item').removeClass('selected');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user