From 7903ae00010bed6702b294b39642f5c88f471f23 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 27 Feb 2019 23:21:00 +0100 Subject: [PATCH] pass event to item clicked handler --- src/ui/web/ListView.js | 2 +- src/ui/web/SessionView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/web/ListView.js b/src/ui/web/ListView.js index e504f208..07583a7c 100644 --- a/src/ui/web/ListView.js +++ b/src/ui/web/ListView.js @@ -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() { diff --git a/src/ui/web/SessionView.js b/src/ui/web/SessionView.js index 15970e8e..98373a86 100644 --- a/src/ui/web/SessionView.js +++ b/src/ui/web/SessionView.js @@ -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) );