Commit 6c5c9234 authored by Romain Loth's avatar Romain Loth

dblclick resets area selector size to 0

parent 1a7fd814
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment