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