Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
INSPQ
genomique
auspice
Commits
13cc771b
Unverified
Commit
13cc771b
authored
Jun 26, 2020
by
Elias Harkins
Committed by
GitHub
Jun 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1175 from dos077/zoom_state_fix
fix bug of gmax&gmin query earse on any other entropy brush
parents
05efebfd
288aef7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
src/components/entropy/entropyD3.js
src/components/entropy/entropyD3.js
+14
-6
No files found.
src/components/entropy/entropyD3.js
View file @
13cc771b
...
...
@@ -442,12 +442,20 @@ EntropyChart.prototype._addBrush = function _addBrush() {
this
.
brushFinished
=
function
brushFinished
()
{
this
.
brushed
();
/* if the brushes were moved by box, click drag, handle, or click, then update zoom coords */
if
(
d3event
.
sourceEvent
instanceof
MouseEvent
&&
(
!
d3event
.
selection
||
d3event
.
sourceEvent
.
target
.
id
===
"
d3entropyParent
"
||
d3event
.
sourceEvent
.
target
.
id
===
""
))
{
this
.
props
.
dispatch
(
changeZoom
(
this
.
zoomCoordinates
));
}
else
{
/* If selected gene or clicked on entropy, hide zoom coords */
this
.
props
.
dispatch
(
changeZoom
([
undefined
,
undefined
]));
if
(
d3event
.
sourceEvent
instanceof
MouseEvent
)
{
if
(
!
d3event
.
selection
||
d3event
.
sourceEvent
.
target
.
id
===
"
d3entropyParent
"
||
d3event
.
sourceEvent
.
target
.
id
===
""
)
{
this
.
props
.
dispatch
(
changeZoom
(
this
.
zoomCoordinates
));
}
else
if
(
d3event
.
sourceEvent
.
target
.
id
.
match
(
/^prot/
)
||
d3event
.
sourceEvent
.
target
.
id
.
match
(
/^nt/
)
)
{
/* If selected gene or clicked on entropy, hide zoom coords */
this
.
props
.
dispatch
(
changeZoom
([
undefined
,
undefined
]));
}
}
};
...
...
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