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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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

<p align="center"> <img src="https://raw.githubusercontent.com/AhsanAyaz/ngx-device-detector/master/assets/logo.svg" width="200"> </p>

MIT
Latest version published 5 months ago

Package Health Score

75 / 100
Full package analysis