pass event to item clicked handler

This commit is contained in:
Bruno Windels 2019-02-27 23:21:00 +01:00
parent 16d5c3279c
commit 7903ae0001
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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)
);