WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
47462
Textarea resizes too fast when its size changes the size of the page
https://bugs.webkit.org/show_bug.cgi?id=47462
Summary
Textarea resizes too fast when its size changes the size of the page
Devin Samarin
Reported
2010-10-09 19:53:31 PDT
Created
attachment 70384
[details]
Simple test page Let's say you have a textarea at the bottom of the page. (you have a textarea at the bottom of the page) If you drag the textarea so it is bigger, and then make it smaller, it will shrink on every mouse move, basically. It will shrink too fast. So if there was another way the textarea was resized, it wouldn't do that. I propose a new method of resizing it, written in Pseudocode. When you start to resize the textarea: set start_x = mouse coordinates on the screen(x) set start_y = mouse coordinates on the screen(y) set start_width = width of textarea() set start_height = height of textarea() When you drag the mouse on the screen: set move_x = mouse coordinates on the screen(x) set move_y = mouse coordinates on the screen(y) set diff_x = move_x - start_x set diff_y = move_y - start_y set_width_of_textarea ( start_width + diff_x ); set_height_of_textarea( start_height + diff_y ); I hope there is no mistake in my pseudocode but that is basically my idea. I may need to clarify a few points. Drawbacks: There is the possibility that the mouse cursor position is not syncronized with the resize handle of the textarea. Advantages: The resizing of the textarea is relative to the screen and not the page
Attachments
Simple test page
(3.86 KB, text/html)
2010-10-09 19:53 PDT
,
Devin Samarin
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2010-10-10 11:14:03 PDT
Too fast for what? I do not see any issues with your test case in Safari. Could you please rephrase what the problem is? You click on bottom right corner of textarea, and it remains under the mouse pointer when mouse is moved. That's how dragging always works.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug