mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 16:55:31 +02:00
Refactor dot removal logic in ZenGradientGenerator
This commit is contained in:
parent
aa13489798
commit
2572fb55f6
1 changed files with 2 additions and 2 deletions
|
@ -280,12 +280,12 @@
|
|||
|
||||
onDotMouseUp(event) {
|
||||
if (event.button === 2) {
|
||||
if (this.numberOfDots < 2 || !event.target.classList.contains('zen-theme-picker-dot')
|
||||
|| this.numberOfDots === 1) {
|
||||
if (this.numberOfDots < 2 || !event.target.classList.contains('zen-theme-picker-dot')) {
|
||||
return;
|
||||
}
|
||||
event.target.remove();
|
||||
this.updateCurrentWorkspace();
|
||||
this.numberOfDots--;
|
||||
return;
|
||||
}
|
||||
if (this.dragging) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue