Skip to content

Commit 451edbc

Browse files
committed
Deleted unneeded pointer event reset from modals.handlers.drag.mouseup() from different refactor
1 parent 90d5218 commit 451edbc

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.2.13.5
6+
// @version 2025.2.13.6
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -685,9 +685,7 @@
685685

686686
mouseup() { // restore styles/pointer events, remove listeners, reset modals.draggingModal
687687
Object.assign(modals.draggingModal.style, { // restore styles
688-
pointerEvents: '', cursor: 'inherit', transition: 'inherit',
689-
willChange: 'auto', transform: 'scale(1)'
690-
});
688+
cursor: 'inherit', transition: 'inherit', willChange: 'auto', transform: 'scale(1)' });
691689
[...modals.draggingModal.children] // restore pointer events
692690
.forEach(child => child.style.pointerEvents = '');
693691
['mousemove', 'mouseup'].forEach(eventType => // remove listeners

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.2.13.5
151+
// @version 2025.2.13.6
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -895,9 +895,7 @@
895895

896896
mouseup() { // restore styles/pointer events, remove listeners, reset modals.draggingModal
897897
Object.assign(modals.draggingModal.style, { // restore styles
898-
pointerEvents: '', cursor: 'inherit', transition: 'inherit',
899-
willChange: 'auto', transform: 'scale(1)'
900-
});
898+
cursor: 'inherit', transition: 'inherit', willChange: 'auto', transform: 'scale(1)' });
901899
[...modals.draggingModal.children] // restore pointer events
902900
.forEach(child => child.style.pointerEvents = '');
903901
['mousemove', 'mouseup'].forEach(eventType => // remove listeners

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.2.13.5
151+
// @version 2025.2.13.6
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -906,9 +906,7 @@
906906

907907
mouseup() { // restore styles/pointer events, remove listeners, reset modals.draggingModal
908908
Object.assign(modals.draggingModal.style, { // restore styles
909-
pointerEvents: '', cursor: 'inherit', transition: 'inherit',
910-
willChange: 'auto', transform: 'scale(1)'
911-
});
909+
cursor: 'inherit', transition: 'inherit', willChange: 'auto', transform: 'scale(1)' });
912910
[...modals.draggingModal.children] // restore pointer events
913911
.forEach(child => child.style.pointerEvents = '');
914912
['mousemove', 'mouseup'].forEach(eventType => // remove listeners

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.2.13.5
152+
// @version 2025.2.13.6
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -1047,9 +1047,7 @@
10471047

10481048
mouseup() { // restore styles/pointer events, remove listeners, reset modals.draggingModal
10491049
Object.assign(modals.draggingModal.style, { // restore styles
1050-
pointerEvents: '', cursor: 'inherit', transition: 'inherit',
1051-
willChange: 'auto', transform: 'scale(1)'
1052-
});
1050+
cursor: 'inherit', transition: 'inherit', willChange: 'auto', transform: 'scale(1)' });
10531051
[...modals.draggingModal.children] // restore pointer events
10541052
.forEach(child => child.style.pointerEvents = '');
10551053
['mousemove', 'mouseup'].forEach(eventType => // remove listeners

0 commit comments

Comments
 (0)