mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-18 17:02:29 +00:00
improve fix for single select
This commit is contained in:
1 parent
a8c605a9e9
commit
111eb5c4df
1 file changed
+2
-2
@@ -77,8 +77,8 @@
|
||||
|
||||
if (
|
||||
e.originalEvent &&
|
||||
$selection.size > 1 &&
|
||||
!(e.originalEvent.ctrlKey || e.originalEvent.metaKey || e.originalEvent.shiftKey)
|
||||
!(e.originalEvent.ctrlKey || e.originalEvent.metaKey || e.originalEvent.shiftKey) &&
|
||||
($selection.size > 1 || !$selection.has(item.extend(getRealId(changed[0]))))
|
||||
) {
|
||||
// Fix bug that sometimes causes a single select to be treated as a multi-select
|
||||
$selection.clear();
|
||||
|
||||
Reference in new issue
Block a user