Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ludovic Kiefer
erp5
Commits
5e57e9a4
Commit
5e57e9a4
authored
Aug 20, 2020
by
Ludovic Kiefer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_run_my_doc: workaround to a know bug of Chromium during drag and drop
parent
ae1774cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideeditor.gadget.js.js
...tem/portal_skins/erp5_run_my_doc/slideeditor.gadget.js.js
+16
-7
No files found.
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideeditor.gadget.js.js
View file @
5e57e9a4
...
...
@@ -647,8 +647,9 @@
queue
=
getTranslationDict
(
gadget
);
if
(
display_step
===
DISPLAY_LIST
)
{
// hovered==2 prevent the refresh of the list when passing parameters
if
(
hovered
!==
-
2
)
{
// hovered == -2 prevent the refresh of the list when passing parameters
// hovered == -3 used when initiating a drag
if
(
hovered
===
undefined
||
hovered
>
-
2
)
{
if
(
dragged
===
undefined
||
dragged
===
-
1
)
{
return
queue
.
push
(
function
(
translation_dict
)
{
...
...
@@ -835,7 +836,7 @@
evt
.
target
.
getAttribute
(
'
data-slide-index
'
),
10
),
hovered_slide
:
-
2
hovered_slide
:
-
3
// Initial value
});
},
false
,
false
)
...
...
@@ -873,12 +874,20 @@
closest_section
.
getAttribute
(
'
data-slide-index
'
),
10
);
if
(
gadget
.
state
.
hovered_slide
===
-
3
&&
hovered
!==
gadget
.
state
.
dragged_slide
)
{
// The first entered slide must be the one that is dragged.
// Verifying this condition prevents a know bug of Chromium based
// browsers when display scaling is on
// https://bugs.chromium.org/p/chromium/issues/detail?id=1005175
gadget
.
changeState
({
hovered_slide
:
gadget
.
state
.
dragged_slide
});
return
;
}
if
(
!
isNaN
(
hovered
))
{
gadget
.
changeState
({
hovered_slide
:
parseInt
(
closest_section
.
getAttribute
(
'
data-slide-index
'
),
10
)
hovered_slide
:
hovered
});
}
},
false
,
false
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment