Compare commits
4
Commits
v1.5.2
..
ad7c925f6b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad7c925f6b | ||
|
|
9c762b8cb5 | ||
|
|
40890b3d93 | ||
|
|
eb0cd8ecad |
@@ -312,7 +312,7 @@ function calc_rows_columns(src) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Preventing useless redraws when resizing
|
// Preventing useless redraws when resizing
|
||||||
if (src === "resize" && previous_rows === rows && previous_columns === columns) return false;
|
if (src === "resize" && layout === 0 && previous_rows === rows && previous_columns === columns) return false;
|
||||||
|
|
||||||
true_slots_count_display = columns * rows - minus_slots_carry;
|
true_slots_count_display = columns * rows - minus_slots_carry;
|
||||||
slots_count_display = scrollable && nbslot_edit ? true_slots_count_display - 2 : true_slots_count_display;
|
slots_count_display = scrollable && nbslot_edit ? true_slots_count_display - 2 : true_slots_count_display;
|
||||||
@@ -1501,6 +1501,7 @@ function find_pattrstorage(name) {
|
|||||||
if (pattrstorage_obj != null) {
|
if (pattrstorage_obj != null) {
|
||||||
pattrstorage_name = name;
|
pattrstorage_name = name;
|
||||||
filled_slots_dict.name = pattrstorage_name + '_presets_dict';
|
filled_slots_dict.name = pattrstorage_name + '_presets_dict';
|
||||||
|
slots_clear();
|
||||||
// this.patcher.hiddenconnect(pattrstorage_obj, 0, this.box, 0);
|
// this.patcher.hiddenconnect(pattrstorage_obj, 0, this.box, 0);
|
||||||
// post('lets find presets_metata pattr for', name, '\n');
|
// post('lets find presets_metata pattr for', name, '\n');
|
||||||
if (use_uid || color_mode > 1) connect_to_metadata_pattr();
|
if (use_uid || color_mode > 1) connect_to_metadata_pattr();
|
||||||
@@ -1933,11 +1934,11 @@ ondblclick.local = 1;
|
|||||||
function ondrag(x,y,but,cmd,shift,capslock,option,ctrl)
|
function ondrag(x,y,but,cmd,shift,capslock,option,ctrl)
|
||||||
{
|
{
|
||||||
if (pattrstorage_name != null) {
|
if (pattrstorage_name != null) {
|
||||||
y -= y_offset;
|
|
||||||
if (is_dragging === 0 && !but) {
|
if (is_dragging === 0 && !but) {
|
||||||
// Triggering onclick() interactions when click releases if no drag happened
|
// Triggering onclick() interactions when click releases if no drag happened
|
||||||
onclick(x, y, 0, cmd, shift, capslock, option, ctrl);
|
onclick(x, y, 0, cmd, shift, capslock, option, ctrl);
|
||||||
}
|
}
|
||||||
|
y -= y_offset;
|
||||||
if (drag_mode > 0 && !cmd && !shift && !ctrl) {
|
if (drag_mode > 0 && !cmd && !shift && !ctrl) {
|
||||||
switch (is_dragging) {
|
switch (is_dragging) {
|
||||||
case 0: // Not dragging yet
|
case 0: // Not dragging yet
|
||||||
@@ -2075,7 +2076,7 @@ function ondrag(x,y,but,cmd,shift,capslock,option,ctrl)
|
|||||||
if (!but) {
|
if (!but) {
|
||||||
// When the click releases, we force onidle() to compute currently hovered slot
|
// When the click releases, we force onidle() to compute currently hovered slot
|
||||||
last_x += 1;
|
last_x += 1;
|
||||||
onidle(x, y, but, cmd, shift, capslock, option, ctrl);
|
onidle(x, y + y_offset, but, cmd, shift, capslock, option, ctrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "tc.preset",
|
"name" : "tc.preset",
|
||||||
"displayname" : "",
|
"displayname" : "",
|
||||||
"version" : "1.5.2",
|
"version" : "1.5.4",
|
||||||
"author" : "Théophile Clet",
|
"author" : "Théophile Clet",
|
||||||
"authors" : [ ],
|
"authors" : [ ],
|
||||||
"description" : "A jsui replacement for the preset object",
|
"description" : "A jsui replacement for the preset object",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "tc.preset",
|
"name" : "tc.preset",
|
||||||
"displayname" : "",
|
"displayname" : "",
|
||||||
"version" : "1.5.2",
|
"version" : "1.5.4",
|
||||||
"author" : "Théophile Clet",
|
"author" : "Théophile Clet",
|
||||||
"authors" : [ ],
|
"authors" : [ ],
|
||||||
"description" : "A v8ui replacement for the preset object",
|
"description" : "A v8ui replacement for the preset object",
|
||||||
|
|||||||
Reference in New Issue
Block a user