haxeui / haxeui-openfl

The OpenFL backend of the HaxeUI framework -
http://haxeui.org
MIT License
42 stars 14 forks source link

Textarea event bug in Flash target #44

Open turdparty opened 5 years ago

turdparty commented 5 years ago

Current Behavior

When you click on the scrollbar-thumb to scroll the text in a textarea the following error occurs for the flash target. (Not an issue for the android target.)

Error #1034: Type Coercion failed: cannot convert haxe.ui.events::FocusEvent@6e608d1 to haxe.ui.events.MouseEvent.

haxe.ui.util::EventMap/invoke at ...\haxe\lib\haxeui-core\git\haxe\ui\util\EventMap.hx:70 haxe.ui.core::ComponentEvents/dispatch at ...\haxe\lib\haxeui-core\git\haxe\ui\core\ComponentEvents.hx:92 haxe.ui.core::InteractiveComponent/set_focus at ...\haxe\lib\haxeui-core\git\haxe\ui\core\InteractiveComponent.hx:49 haxe.ui.components._TextArea::Events/onMouseDown at ...\haxe\lib\haxeui-core\git\haxe\ui\components\TextArea.hx:300 haxe.ui.util::EventMap/invoke at ...\haxe\lib\haxeui-core\git\haxe\ui\util\EventMap.hx:70 haxe.ui.core::ComponentEvents/dispatch at ...\haxe\lib\haxeui-core\git\haxe\ui\core\ComponentEvents.hx:92 haxe.ui.core::ComponentEvents/_onMappedEvent at ...\haxe\lib\haxeui-core\git\haxe\ui\core\ComponentEvents.hx:101 haxe.ui.backend::ComponentImpl/__onMouseEvent at ...\haxe\lib\haxeui-openfl\git\haxe\ui\backend\ComponentImpl.hx:273

Steps to Reproduce (for bugs)

  1. Just take the most basic haxeui example and add a textarea.

`