Skip to content

Commit

Permalink
BugFix #129 #145
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Siekiera committed Nov 7, 2019
1 parent cba0166 commit ea302de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
##Changelog - Chrome Extension


#####v2.3.12.1
**Update**
- Extension:
- Boxen können nicht mehr "zu hoch" geschoben werden [#129](https://github.com/dsiekiera/foe-helfer-extension/issues/129) [#145](https://github.com/dsiekiera/foe-helfer-extension/issues/145)

#####v2.3.12

**BugFix**
Expand All @@ -23,7 +29,7 @@
- Individuelle Prozente pro Platz einstellbar

- Einstellungen:
- neuer Menüpunkt => Box Koordinaten geresetten
- neuer Menüpunkt => "Box Koordinaten resetten"

---

Expand Down
10 changes: 9 additions & 1 deletion js/web/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Projekt: foe
*
* erstellt von: Daniel Siekiera <[email protected]>
* zu letzt bearbeitet: 18.10.19, 15:18 Uhr
* zu letzt bearbeitet: 07.11.19, 21:51 Uhr
*
* Copyright © 2019
*
Expand Down Expand Up @@ -252,6 +252,14 @@ let HTML = {
top = (el.offsetTop - pos2);
left = (el.offsetLeft - pos1);

// Schutz gegen "zu Hoch geschoben"
if(top < 0) {
top = 12;

document.onmouseup = null;
document.onmousemove = null;
}

el.style.top = top + "px";
el.style.left = left + "px";

Expand Down

0 comments on commit ea302de

Please sign in to comment.