Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
9deb00dc
Commit
9deb00dc
authored
Aug 29, 2022
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[layout] Resolve resize handler blocking issue
* #422
parent
1e022c0f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
4 deletions
+33
-4
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+4
-0
bootstrap-default.css
dist/styles/bootstrap-default.css
+4
-0
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+4
-0
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+4
-0
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+4
-0
Resize.js
src/Gargantext/Hooks/Resize.js
+10
-4
_styles.sass
src/sass/_legacy/_styles.sass
+3
-0
No files found.
dist/styles/bootstrap-darkster.css
View file @
9deb00dc
...
...
@@ -9978,6 +9978,10 @@ a:focus, a:hover {
user-select
:
none
;
}
.no-pointer-events
{
pointer-events
:
none
;
}
.side-panel
{
background-color
:
#fff
;
padding
:
0.3em
;
...
...
dist/styles/bootstrap-default.css
View file @
9deb00dc
...
...
@@ -9931,6 +9931,10 @@ a:focus, a:hover {
user-select
:
none
;
}
.no-pointer-events
{
pointer-events
:
none
;
}
.side-panel
{
background-color
:
#fff
;
padding
:
0.3em
;
...
...
dist/styles/bootstrap-greyson.css
View file @
9deb00dc
...
...
@@ -9687,6 +9687,10 @@ a:focus, a:hover {
user-select
:
none
;
}
.no-pointer-events
{
pointer-events
:
none
;
}
.side-panel
{
background-color
:
#fff
;
padding
:
0.3em
;
...
...
dist/styles/bootstrap-herbie.css
View file @
9deb00dc
...
...
@@ -9935,6 +9935,10 @@ a:focus, a:hover {
user-select
:
none
;
}
.no-pointer-events
{
pointer-events
:
none
;
}
.side-panel
{
background-color
:
#fff
;
padding
:
0.3em
;
...
...
dist/styles/bootstrap-monotony.css
View file @
9deb00dc
...
...
@@ -9936,6 +9936,10 @@ a:focus, a:hover {
user-select
:
none
;
}
.no-pointer-events
{
pointer-events
:
none
;
}
.side-panel
{
background-color
:
#fff
;
padding
:
0.3em
;
...
...
src/Gargantext/Hooks/Resize.js
View file @
9deb00dc
...
...
@@ -3,7 +3,7 @@
exports
.
_add
=
add
;
exports
.
_remove
=
remove
;
/**
* @
name
add
* @
function
add
* @param {Window} window
* @param {Document} document
* @param {String} sourceQuery
...
...
@@ -22,13 +22,18 @@ function add(window, document, sourceQuery, targetQuery, type) {
}
function
startResizing
(
e
)
{
var
height
=
e
.
clientY
-
target
.
offsetTop
var
width
=
e
.
clientX
-
target
.
offsetLeft
if
(
type
===
'both'
||
type
===
'horizontal'
)
target
.
style
.
height
=
(
e
.
clientY
-
target
.
offsetTop
)
+
'px'
;
target
.
style
.
height
=
height
+
'px'
;
if
(
type
===
'both'
||
type
===
'vertical'
)
target
.
style
.
width
=
(
e
.
clientX
-
target
.
offsetLeft
)
+
'px'
;
target
.
style
.
width
=
width
+
'px'
;
// prevent "user-select" highlights
document
.
body
.
classList
.
add
(
'no-user-select'
);
// prevent event focus losing (eg. while hovering iframe, see #422)
document
.
body
.
classList
.
add
(
'no-pointer-events'
);
}
function
stopResizing
(
e
)
{
...
...
@@ -36,10 +41,11 @@ function add(window, document, sourceQuery, targetQuery, type) {
window
.
removeEventListener
(
'mouseup'
,
stopResizing
,
false
);
document
.
body
.
classList
.
remove
(
'no-user-select'
);
document
.
body
.
classList
.
remove
(
'no-pointer-events'
);
}
}
/**
* @
name
remove
* @
function
remove
* @param {Document} document
* @param {String} sourceQuery
*/
...
...
src/sass/_legacy/_styles.sass
View file @
9deb00dc
...
...
@@ -2,6 +2,9 @@
.no-user-select
user-select
:
none
.no-pointer-events
pointer-events
:
none
.side-panel
background-color
:
#fff
padding
:
0
.3em
...
...
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