Bug 92494 - [EFL] Change the scrollbar behavior not to select the text when moving the scrollbar thumb
Summary: [EFL] Change the scrollbar behavior not to select the text when moving the sc...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Jinwoo Song
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 05:12 PDT by Jinwoo Song
Modified: 2012-11-23 22:28 PST (History)
6 users (show)

See Also:


Attachments
patch (2.19 KB, patch)
2012-07-27 05:22 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch2. Remove the unnecessary check statement. (2.15 KB, patch)
2012-07-27 22:53 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch. (2.15 KB, patch)
2012-07-27 23:12 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch (2.77 KB, patch)
2012-08-16 23:39 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch (1.75 KB, patch)
2012-08-17 00:07 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jinwoo Song 2012-07-27 05:12:01 PDT
Set mouse pressed to false when the mouse is over the thumb of the scrollbar 
and change the variable name more clearly.
Comment 1 Jinwoo Song 2012-07-27 05:22:28 PDT
Created attachment 154912 [details]
patch
Comment 2 Jinwoo Song 2012-07-27 22:53:54 PDT
Created attachment 155112 [details]
patch2. Remove the unnecessary check statement.
Comment 3 Gyuyoung Kim 2012-07-27 22:57:34 PDT
Why do you only request cq ? Please request r? as well. And, did you check if this patch influences on layout test ? We need to verify it.
Comment 4 Jinwoo Song 2012-07-27 23:05:12 PDT
I'll request r+ for this patch.
I think this does not need layout test because the scrollbar layout tests use the mockup scrollbar and this patch does not change the mockup scrollbar.
Comment 5 Jinwoo Song 2012-07-27 23:12:21 PDT
Created attachment 155113 [details]
patch.

request cq+ and r+.
Comment 6 Gyuyoung Kim 2012-07-27 23:23:42 PDT
(In reply to comment #4)
> I'll request r+ for this patch.
> I think this does not need layout test because the scrollbar layout tests use the mockup scrollbar and this patch does not change the mockup scrollbar.

It seems to me this patch may influence on layout test result. If there are no differences in layout test result or no unskipped test cases, I can review this informally.

See also,
http://trac.webkit.org/wiki/WebKitEFLLayoutTest
Comment 7 Jinwoo Song 2012-07-27 23:37:12 PDT
okay, I'll check the if the regression is happened and let you know.
Comment 8 Jinwoo Song 2012-07-28 01:34:24 PDT
(In reply to comment #6)
> (In reply to comment #4)
> > I'll request r+ for this patch.
> > I think this does not need layout test because the scrollbar layout tests use the mockup scrollbar and this patch does not change the mockup scrollbar.
> 
> It seems to me this patch may influence on layout test result. If there are no differences in layout test result or no unskipped test cases, I can review this informally.
> 
> See also,
> http://trac.webkit.org/wiki/WebKitEFLLayoutTest

I run the layout test and see no regression happened with my patch.
Comment 9 Raphael Kubo da Costa (:rakuco) 2012-07-28 06:49:00 PDT
Comment on attachment 155113 [details]
patch.

I don't think this is the right place for a "fix".

I might be remembering things wrongly, but I think the current behavior is by design. If you want to change it, you should write another EDC theme.
Comment 10 Raphael Kubo da Costa (:rakuco) 2012-07-28 06:49:45 PDT
CC'ing a few people who might be more familiar with the history behind the current theme/behavior.
Comment 11 Raphael Kubo da Costa (:rakuco) 2012-07-28 06:50:54 PDT
Bug 87950 is related to this one. Technically speaking, this one is even a duplicate of that.
Comment 12 Jinwoo Song 2012-07-28 09:25:27 PDT
(In reply to comment #9)
> (From update of attachment 155113 [details])
> I don't think this is the right place for a "fix".
> 
> I might be remembering things wrongly, but I think the current behavior is by design. If you want to change it, you should write another EDC theme.

Actually, I'm curious about the current behavior is intended thing and by design. Because common users do not expect the text selection while scrolling the thumb.
Comment 13 Jinwoo Song 2012-07-28 09:33:47 PDT
(In reply to comment #11)
> Bug 87950 is related to this one. Technically speaking, this one is even a duplicate of that.

Yes, you are right and I could not find that in advance. But it seems that there is no progress in Bug 87950. If so, I'd like to follow that in this bug.
Comment 14 Jinwoo Song 2012-08-16 23:39:54 PDT
Created attachment 159011 [details]
patch
Comment 15 Jinwoo Song 2012-08-16 23:48:22 PDT
I've changed the title of this patch according to the Kubo's comment. So I propose to change the scrollbar behavior not to select the text while moving the scrollbar thumb. As the event is handled in the ScrollbarEfl.cpp, the evas_object_propagate_events_set() is used not to propagate the event to webview.
Comment 16 Gyuyoung Kim 2012-08-16 23:55:04 PDT
Comment on attachment 159011 [details]
patch

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

> Source/WebCore/ChangeLog:9
> +        while moving the scrollbar thumb with the mouse. But It is not 

s/It/it/g

> Source/WebCore/platform/efl/ScrollbarEfl.cpp:71
> +    ScrollbarEfl* scrollbar = static_cast<ScrollbarEfl*>(data);

This coding style change is not related to this bug. I think it would be good to change when this function is modified.

> Source/WebCore/platform/efl/ScrollbarEfl.cpp:110
> +        evas_object_propagate_events_set(object, EINA_FALSE);

Please use standard false instead of EINA_FALSE.
Comment 17 Jinwoo Song 2012-08-17 00:07:31 PDT
Created attachment 159020 [details]
patch
Comment 18 Jinwoo Song 2012-08-17 00:08:52 PDT
(In reply to comment #16)
> (From update of attachment 159011 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=159011&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        while moving the scrollbar thumb with the mouse. But It is not 
> 
> s/It/it/g
> 
Done.

> > Source/WebCore/platform/efl/ScrollbarEfl.cpp:71
> > +    ScrollbarEfl* scrollbar = static_cast<ScrollbarEfl*>(data);
> 
> This coding style change is not related to this bug. I think it would be good to change when this function is modified.
> 
Okay, I moved out the codes in this patch.

> > Source/WebCore/platform/efl/ScrollbarEfl.cpp:110
> > +        evas_object_propagate_events_set(object, EINA_FALSE);
> 
> Please use standard false instead of EINA_FALSE.
Done.
Comment 19 Gyuyoung Kim 2012-08-17 22:50:09 PDT
Comment on attachment 159020 [details]
patch

As kubo said, I also think we can decide if this patch is landed after getting original authors's opinions. 

Rafael, Demarchi and Leandro, could you guys take a look this patch ?
Comment 20 Jinwoo Song 2012-10-06 00:46:18 PDT
(In reply to comment #19)
> (From update of attachment 159020 [details])
> As kubo said, I also think we can decide if this patch is landed after getting original authors's opinions. 
> 
> Rafael, Demarchi and Leandro, could you guys take a look this patch ?

Rafael, Demarchi and Leandro, don't you have any feedback?
Comment 21 Gyuyoung Kim 2012-11-23 22:20:40 PST
Comment on attachment 159020 [details]
patch

I wonder if this patch is still valid.
Comment 22 Jinwoo Song 2012-11-23 22:28:04 PST
I'll make this bug invalid as there is no agreement and discussions any more. Instead, I'll start to look into the WebKit2/EFL scrollbar implementation and this issue may be discussed in that thread.