Only listen to its own events in <webview>, fixes #885
This commit is contained in:
parent
654d21100f
commit
11cd301127
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ createGuest = (embedder, params) ->
|
||||||
|
|
||||||
# Autosize.
|
# Autosize.
|
||||||
guest.on 'size-changed', (_, args...) ->
|
guest.on 'size-changed', (_, args...) ->
|
||||||
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_SIZE_CHANGED", args...
|
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_SIZE_CHANGED-#{guest.viewInstanceId}", args...
|
||||||
|
|
||||||
id
|
id
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ module.exports =
|
||||||
ipc.on "ATOM_SHELL_GUEST_VIEW_INTERNAL_DISPATCH_EVENT-#{viewInstanceId}", (event, args...) ->
|
ipc.on "ATOM_SHELL_GUEST_VIEW_INTERNAL_DISPATCH_EVENT-#{viewInstanceId}", (event, args...) ->
|
||||||
dispatchEvent webView, event, args...
|
dispatchEvent webView, event, args...
|
||||||
|
|
||||||
ipc.on 'ATOM_SHELL_GUEST_VIEW_INTERNAL_SIZE_CHANGED', (args...) ->
|
ipc.on "ATOM_SHELL_GUEST_VIEW_INTERNAL_SIZE_CHANGED-#{viewInstanceId}", (args...) ->
|
||||||
domEvent = new Event('size-changed')
|
domEvent = new Event('size-changed')
|
||||||
for f, i in ['oldWidth', 'oldHeight', 'newWidth', 'newHeight']
|
for f, i in ['oldWidth', 'oldHeight', 'newWidth', 'newHeight']
|
||||||
domEvent[f] = args[i]
|
domEvent[f] = args[i]
|
||||||
|
|
Loading…
Reference in a new issue