Bug 96655 - [BLACKBERRY] Mouse events are lost.
Summary: [BLACKBERRY] Mouse events are lost.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 08:20 PDT by gmak
Modified: 2012-09-13 10:29 PDT (History)
3 users (show)

See Also:


Attachments
patch with commit log (3.06 KB, patch)
2012-09-13 08:30 PDT, gmak
no flags Details | Formatted Diff | Diff
patch with commit log (3.07 KB, patch)
2012-09-13 10:02 PDT, gmak
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gmak 2012-09-13 08:20:49 PDT
If you touch down on a non-scrollable page and move around, mouse events should always be sent unless Touch Move is consumed.
Comment 1 gmak 2012-09-13 08:30:57 PDT
Created attachment 163883 [details]
patch with commit log
Comment 2 Antonio Gomes 2012-09-13 08:36:38 PDT
Comment on attachment 163883 [details]
patch with commit log

View in context: https://bugs.webkit.org/attachment.cgi?id=163883&action=review

> Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:182
> +    return viewportSize.width() < contentsSize.width() && viewportSize.height() < contentsSize.height();

do we want || here? so it can be scrollable in one direction only...

> Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:280
> +                if (isMainFrameScrollable(m_webPage->viewportSize(), m_webPage->contentsSize()))

Given the function name I would rather pass the m_webPage object, and check all inside.

Also, maybe we want actualVisibleViewportSize?
Comment 3 gmak 2012-09-13 10:02:28 PDT
Created attachment 163896 [details]
patch with commit log
Comment 4 WebKit Review Bot 2012-09-13 10:05:05 PDT
Attachment 163896 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/blackberry/ChangeLog', u'Sou..." exit_code: 1
Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:278:  Extra space before ) in if  [whitespace/parens] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Antonio Gomes 2012-09-13 10:05:21 PDT
Comment on attachment 163896 [details]
patch with commit log

View in context: https://bugs.webkit.org/attachment.cgi?id=163896&action=review

> Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp:280
> +                if (isMainFrameScrollable(m_webPage) || m_webPage->m_inRegionScroller->d->isActive() )

extra spcace before last )
Comment 6 WebKit Review Bot 2012-09-13 10:28:58 PDT
Comment on attachment 163896 [details]
patch with commit log

Clearing flags on attachment: 163896

Committed r128479: <http://trac.webkit.org/changeset/128479>
Comment 7 WebKit Review Bot 2012-09-13 10:29:00 PDT
All reviewed patches have been landed.  Closing bug.