mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
events: create an EventHandlerData struct
It simplifies the EventHandlerFunc creation and allows to insert user's data.
This commit is contained in:
@@ -73,9 +73,9 @@ pub const EventTarget = struct {
|
||||
self,
|
||||
alloc,
|
||||
eventType,
|
||||
cbk,
|
||||
capture orelse false,
|
||||
EventHandler,
|
||||
.{ .cbk = cbk },
|
||||
capture orelse false,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user