feat: Remove cases that cannot happen
Optimize HippieTaskBar by removing cases that cannot happen.
This commit is contained in:
parent
fe8008c5b5
commit
9696442a91
1 changed files with 0 additions and 3 deletions
|
|
@ -49,8 +49,6 @@ class HippieTaskBar {
|
||||||
|
|
||||||
onMouseMove(event) {
|
onMouseMove(event) {
|
||||||
if (this.isDragging) {
|
if (this.isDragging) {
|
||||||
if (!this.isDragging) return;
|
|
||||||
|
|
||||||
const closestEdge = getClosestEdge(this.placeholder);
|
const closestEdge = getClosestEdge(this.placeholder);
|
||||||
const borderRadius = '4px';
|
const borderRadius = '4px';
|
||||||
const attributes = {
|
const attributes = {
|
||||||
|
|
@ -121,7 +119,6 @@ class HippieTaskBar {
|
||||||
if (event.target === this.placeholder) {
|
if (event.target === this.placeholder) {
|
||||||
console.debug('Drag mode disabled');
|
console.debug('Drag mode disabled');
|
||||||
|
|
||||||
if (!this.isDragging) return;
|
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
|
|
||||||
this.snapToEdges();
|
this.snapToEdges();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue