Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
}