IRC Log Viewer » #firebreath » 2014-03-17

IRC Nick Time (GMT-7) Message
mkoch 09:03 hi taxilian!
taxilian 09:03 'morning
mkoch 09:03 do you have any idea about this: http://stackoverflow.com/questions/21905477/safarimac-firebreath-plugin-scroll-event
do you have any idea about this: http://stackoverflow.com/questions/21905477/safarimac-firebreath-plugin-scroll-event
taxilian 09:03 I suspect you'll have to click on the plugin to get the event
I suspect you'll have to click on the plugin to get the event
mkoch 09:03 no, the strange thing is the even if I click on it, I still don't have the event
on Chrome it works well, you don't even have to click the plugin window
on Safari you can click in the window but still the scrolling event moves the page, and has no effect within the plugin
taxilian 09:03 does the plugin get the event as well as the page?
does the plugin get the event as well as the page?
mkoch 10:03 no
we created a test page where all the events are reported
click, move, scroll
everyting works smooth
except the scroll
taxilian 10:03 interesting. I have used scroll on safari before and it worked
interesting. I have used scroll on safari before and it worked
mkoch 10:03 EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseUpEvent, onMouseUp, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseScrollEvent, onMouseScroll, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseDoubleClickEvent, onMouseDoubleClick, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseDoubleClickEvent, onMouseDoubleClick, FB::PluginWindow)
EVENTTYPE_CASE(FB::AttachedEvent, onWindowAttached, FB::PluginWindow)
EVENTTYPE_CASE(FB::DetachedEvent, onWindowDetached, FB::PluginWindow)
EVENTTYPE_CASE(FB::DetachedEvent, onWindowDetached, FB::PluginWindow)
taxilian 10:03 never paste code in IRC… use a pastebin or gist.github.com
never paste code in IRC… use a pastebin or gist.github.com
too hard to read here
but those look like they should be fine
mkoch 10:03 just 7 lines :P
can you check if your plugin works indeed with a recent Safari version?
with Safari 7.x for example
taxilian 10:03 I can't, because I don't have that plugin anymore :-/
I can't, because I don't have that plugin anymore :-/
mkoch 10:03 I googled on it a bit and I actually found 2 threads with similar problems on 2 different projects. (neither was Firebreath, but some other Safari plugins)
and there was no useful solution, at one place it was mentioned tho that Safari is indeed not passing the scroll event
taxilian 10:03 the thing is that there is no way to control what events Safari passes on
mkoch 10:03 in FB's event handling on mac, do you rely on which framework is chosen in the config cmake file? (carbon, cocoa, ca)
taxilian 10:03 partially; we pick the best that is supported
mkoch 10:03 regardless of what is selected in the pluginConfig.cmake?
taxilian 10:03 the best that is supported by the browser out of the ones enabled in pluginconfig
mkoch 10:03 ok
mkoch 10:03 hm I tried to enable all frameworks now but it didn't help
no big surprise, as we use CoreAnimation by default
how would you start debugging this?
taxilian 10:03 the same way you have; if the message never gets sent at all I don't think there is anything you can do
you could try 32 bit vs 64 bit
mkoch 10:03 I did that too...
it would be helpful to see a Safari plugin which can use the scroll event. even if it was not built with FB. do you know about such plugin?