Skip to content
Snippets Groups Projects
Commit 967df6af authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Fixed fullscreen mode for Safari browsers.

parent 38434763
No related branches found
No related tags found
No related merge requests found
Pipeline #55712 passed
......@@ -4,6 +4,7 @@ import { loadGraphJson } from "../datasets/datasets";
import * as THREE from "three";
import ForceGraph3D from "3d-force-graph";
import screenfull from "screenfull";
import {
CSS3DRenderer,
......@@ -362,7 +363,7 @@ export default class Graph {
}
resize() {
if (document.fullscreenElement == Helpers.getCanvasDivNode()) {
if (screenfull.isEnabled) {
this.graph.height(screen.height);
this.graph.width(screen.width);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment