mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
pass event to item clicked handler
This commit is contained in:
parent
16d5c3279c
commit
7903ae0001
@ -66,7 +66,7 @@ export default class ListView {
|
||||
}
|
||||
const index = Array.prototype.indexOf.call(this._root.childNodes, childNode);
|
||||
const childView = this._childInstances[index];
|
||||
this._onItemClick(childView);
|
||||
this._onItemClick(childView, event);
|
||||
}
|
||||
|
||||
_unloadList() {
|
||||
|
@ -23,7 +23,7 @@ export default class SessionView {
|
||||
this._roomList = new ListView(
|
||||
{
|
||||
list: this._viewModel.roomList,
|
||||
onItemClick: roomTile => roomTile.clicked()
|
||||
onItemClick: (roomTile, event) => roomTile.clicked(event)
|
||||
},
|
||||
(room) => new RoomTile(room)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user