Merge pull request #361 from jgibbon/bugfix/extraContent_click
Fix click signal forwarding for extra content items
This commit is contained in:
commit
a6e0c9b3ab
1 changed files with 1 additions and 4 deletions
|
@ -56,10 +56,7 @@ ListItem {
|
||||||
} else {
|
} else {
|
||||||
// Allow extra context to react to click
|
// Allow extra context to react to click
|
||||||
var extraContent = extraContentLoader.item
|
var extraContent = extraContentLoader.item
|
||||||
if (extraContent && ("clicked" in extraContent) && (typeof extraContent.clicked === "function") &&
|
if (extraContent && extraContentLoader.contains(mapToItem(extraContentLoader, mouse.x, mouse.y))) {
|
||||||
mouseX >= extraContentLoader.x && mouseY >= extraContentLoader.y &&
|
|
||||||
mouseX < (extraContentLoader.x + extraContentLoader.width) &&
|
|
||||||
mouseY < (extraContentLoader.y + extraContentLoader.height)) {
|
|
||||||
extraContent.clicked()
|
extraContent.clicked()
|
||||||
} else if (webPagePreviewLoader.item) {
|
} else if (webPagePreviewLoader.item) {
|
||||||
webPagePreviewLoader.item.clicked()
|
webPagePreviewLoader.item.clicked()
|
||||||
|
|
Loading…
Reference in a new issue