Skip to content

Commit

Permalink
minor hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
IHyperLight committed Nov 2, 2024
1 parent d24c0af commit afb80ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,21 +725,21 @@ document.addEventListener('DOMContentLoaded', () => {
if (!elements.locationButton.classList.contains('active')) {
if (!elements.locationButton.classList.contains('stand')) {
elements.locationButton.classList.add('stand');
elements.locationButton.title = `Waiting for your\nlocation pick...`;
elements.locationButton.setAttribute("data-tooltip", `Waiting for your location pick . . .`)
await trackCursor();
[px, py] = location.split(',').map(Number);
if (!status) {
[tx, ty] = [px, py];
}
elements.locationButton.title = `Picked location\nX : ${px}, Y : ${py}`;
elements.locationButton.setAttribute("data-tooltip", `Picked location\\nX : ${px}, Y : ${py}`)
elements.locationButton.classList.remove('stand');
elements.locationButton.classList.add('active');
}
} else {
location = '';
[px, py] = [0, 0];
elements.locationButton.classList.remove('active');
elements.locationButton.title = "Select to pick a specific location for some activation\nmodes. Deselect to use the center of the window";
elements.locationButton.setAttribute("data-tooltip", `Select to pick a specific location for mouse clicks mode and mouse movement mode.\\nDeselect to use the default location : the center of the window, or the current cursor position only if the entire system mode is selected`)
}
if (status) {
if ((pick) && (pick === elements.locationButton.classList.contains('active')) && !(px === tx && py === ty)) {
Expand Down

0 comments on commit afb80ca

Please sign in to comment.