From d6e2c7eef6c5eebed2e361cd85357a60767b0969 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Mon, 20 May 2024 13:59:01 +0200 Subject: [PATCH] wrong prop name used --- haxe/ui/backend/PlatformImpl.hx | 2 +- haxe/ui/backend/ToolkitOptions.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/haxe/ui/backend/PlatformImpl.hx b/haxe/ui/backend/PlatformImpl.hx index 0e0fc84..4c76d7f 100644 --- a/haxe/ui/backend/PlatformImpl.hx +++ b/haxe/ui/backend/PlatformImpl.hx @@ -60,7 +60,7 @@ class PlatformImpl extends PlatformBase { if (Screen.instance._options == null) { return false; } - if (Screen.instance._options.throttleMouseWheelPlatforms == null) { + if (Screen.instance._options.useNativeScrollers == null) { return false; } return Screen.instance._options.useNativeScrollers; diff --git a/haxe/ui/backend/ToolkitOptions.hx b/haxe/ui/backend/ToolkitOptions.hx index 4f6cfc7..a08cbb5 100644 --- a/haxe/ui/backend/ToolkitOptions.hx +++ b/haxe/ui/backend/ToolkitOptions.hx @@ -4,7 +4,7 @@ import js.html.Element; typedef ToolkitOptions = { ?container:Element, - ?useNativeScrollers:Bool, + ?useNativeScrollers:Null, ?throttleMouseWheelPlatforms:Array, ?throttleMouseWheelTimestampDelta:Null }