mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 17:04:01 +02:00
Minor hacks in select.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user