Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
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
david Chavalarias
clinicaltrials
Commits
6c5c9234
Commit
6c5c9234
authored
Apr 12, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dblclick resets area selector size to 0
parent
1a7fd814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Tinaweb.js
tinawebJS/Tinaweb.js
+6
-4
No files found.
tinawebJS/Tinaweb.js
View file @
6c5c9234
...
@@ -323,7 +323,6 @@ function SelectionEngine() {
...
@@ -323,7 +323,6 @@ function SelectionEngine() {
// TODO TW.SelInst
// TODO TW.SelInst
var
SelInst
var
SelInst
TinaWebJS
=
function
(
sigmacanvas
)
{
TinaWebJS
=
function
(
sigmacanvas
)
{
this
.
sigmacanvas
=
sigmacanvas
;
this
.
sigmacanvas
=
sigmacanvas
;
...
@@ -870,9 +869,7 @@ TinaWebJS = function ( sigmacanvas ) {
...
@@ -870,9 +869,7 @@ TinaWebJS = function ( sigmacanvas ) {
// });
// });
//Cursor Size slider
//Cursor Size slider
// + reindexation when size is settled (=> updates the quadtree)
var
cursorSlider
=
$
(
"#unranged-value"
).
freshslider
({
// var reindexTimeout = null
$
(
"#unranged-value"
).
freshslider
({
step
:
1
,
step
:
1
,
min
:
cursor_size_min
,
min
:
cursor_size_min
,
max
:
cursor_size_max
,
max
:
cursor_size_max
,
...
@@ -883,6 +880,11 @@ TinaWebJS = function ( sigmacanvas ) {
...
@@ -883,6 +880,11 @@ TinaWebJS = function ( sigmacanvas ) {
}
}
});
});
// double click on cursor selector slider => set it to 0
$
(
"#areacircle-size"
).
dblclick
(
function
(){
cursorSlider
.
setValue
(
0
)
});
// general listener: shift key in the window <=> add to selection
// general listener: shift key in the window <=> add to selection
$
(
document
).
on
(
'keyup keydown'
,
function
(
e
){
$
(
document
).
on
(
'keyup keydown'
,
function
(
e
){
// changes the global boolean ("add node to selection" status) if keydown and SHIFT
// changes the global boolean ("add node to selection" status) if keydown and SHIFT
...
...
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