Skip to content

Commit

Permalink
bugfix: app scroll issues
Browse files Browse the repository at this point in the history
  • Loading branch information
felipevex committed Oct 18, 2018
1 parent f1c43b9 commit cd37ca6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions priori/app/PriApp.hx
Expand Up @@ -61,12 +61,18 @@ class PriApp extends PriGroup {
this.dh.styles.set("width", "100%");
this.dh.styles.set("height", "100%");
this.dh.styles.set("position", "fixed");

this.clipping = true;

StyleHelper.applyFontStyle(this.dh.styles, new PriFontStyle());
this.__updateStyle();

this.__updateStyle();

Browser.window.document.body.style.border = "0px";
Browser.window.document.body.style.margin = "0px";
Browser.window.document.body.style.overflow = "hidden";
Browser.window.document.body.style.position = "fixed";

if (Browser.window.document.addEventListener != null) {
Browser.window.document.addEventListener("mousemove", this.___onPointerMove, true);
Browser.window.document.addEventListener("touchmove", this.___onPointerMove, true);
Expand All @@ -89,7 +95,7 @@ class PriApp extends PriGroup {

this.frame = Browser.document.createDivElement();
this.frame.className = "priori_stylebase";
this.frame.style.cssText = "overflow:visible;width:1000px;height:1000px;visibility:hidden;";
this.frame.style.cssText = "overflow:visible;width:1px;height:1px;visibility:hidden;";
Browser.window.document.body.appendChild(this.frame);

this.dispatchEvent(new PriEvent(PriEvent.ADDED_TO_APP, true));
Expand Down

0 comments on commit cd37ca6

Please sign in to comment.