How to use the ngx-device-detector.OS.LINUX function in ngx-device-detector

To help you get started, we’ve selected a few ngx-device-detector examples, based on popular ways it is used in public projects.

github Lumeer / web-ui / src / app / view / perspectives / map / content / render / map-render.component.ts View on Github external
private fixDefaultMapZoomRate() {
    // zoom is by default very slow in Blink-based browsers (Chrome, Opera, etc.) on Linux
    if (this.deviceDetectorService.os === OS.LINUX && this.platform.BLINK) {
      (this.mapboxMap.scrollZoom as any).setWheelZoomRate(1 / 200);
    }
  }

ngx-device-detector

<a href="https://koderlabs.github.io/ngx-device-detector"> <h1 align="center">ngx-device-detector</h1> </a>

MIT
Latest version published 1 month ago

Package Health Score

80 / 100
Full package analysis