Minor hacks in select.

This commit is contained in:
Lars Jung 2015-04-02 15:00:38 +02:00
parent 4097119d25
commit e9aa3b8743
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,13 @@
html.drag-select, html.drag-select * {
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;
}

View file

@ -198,6 +198,11 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
$('#content')
.on('mousedown', selectionStart)
.on('drag dragstart', function (ev) {
ev.stopImmediatePropagation();
ev.preventDefault();
})
.on('click', function (ev) {
$('#items .item').removeClass('selected');