After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651842 - Dash icon dragging placeholder jumps around
Dash icon dragging placeholder jumps around
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Florian Müllner
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-06-04 09:05 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-03-13 23:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix jumpy placeholder position (1.61 KB, patch)
2012-01-26 15:27 UTC, Jean-Philippe Braun
none Details | Review
Fix jumpy placeholder position (1.58 KB, patch)
2012-01-26 15:30 UTC, Jean-Philippe Braun
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-06-04 09:05:11 UTC
1. Grab a dash icon
2. Move down until you see the drop target placeholder appear.
3. Move down another icon.
4. Slowly move back up.

The placeholder icon should eventually start going mental, bouncing between the below placeholder and the correct one every frame.
Comment 1 Allan Day 2011-11-17 17:14:24 UTC
I'm unable to reproduce. Is this resolved?
Comment 2 Allan Day 2011-11-17 17:15:48 UTC
I'm not comfortable with the previous title. Updating.
Comment 3 Florian Müllner 2011-11-17 17:20:42 UTC
(In reply to comment #1)
> I'm unable to reproduce. Is this resolved?

No.


(In reply to comment #2)
> I'm not comfortable with the previous title. Updating.

Agreed.
Comment 4 Asif Ali Rizvan 2012-01-07 03:49:47 UTC
video showing dash icon placeholder erratic behavior on move of dash icon
http://www.wupload.com/file/2636782112/Jumping_dash_icon_on_move_operation.ogv
Comment 5 Jeremy Newton 2012-01-10 01:12:20 UTC
Confirmed on my end too, its very noticeable when you grab the second last icon.

Steps to reproduce for me (on gnome 3.2.1):
1.Set at least 3 icons to the dash and close all windows. (I used Nautilus, Chrome and Evolution respectively)
2.Grab the second last icon (Chrome in my case)
3.Drag icon roughly below the trash
4.Quickly but not too fast drag it back to where it was

If done correctly there's a bit of a visual "freakout" on the dash
Comment 6 Jean-Philippe Braun 2012-01-26 15:27:58 UTC
Created attachment 206193 [details] [review]
Fix jumpy placeholder position

Here is a patch that fixes this issue. The removed block was the guilty but I'm not sure what it was supposed to do. Anyway I didn't remark any side effects of this removal. Calculating the placeholder position regarding the dash height works fine but is a little bit tricky with the animations that modify the height (trash/placeholder animations).
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-01-26 15:30:01 UTC
Review of attachment 206193 [details] [review]:

I think you attached the wrong patch.
Comment 8 Jean-Philippe Braun 2012-01-26 15:30:12 UTC
Created attachment 206195 [details] [review]
Fix jumpy placeholder position

Sorry I posted the wrong patch.
Comment 9 Allan Day 2012-02-02 12:24:36 UTC
(In reply to comment #8)
> Created an attachment (id=206195) [details] [review]
> Fix jumpy placeholder position
> 
> Sorry I posted the wrong patch.

Works for me. Thanks for the patch, Jean-Philippe.
Comment 10 Florian Müllner 2012-03-05 17:16:29 UTC
Review of attachment 206195 [details] [review]:

(In reply to comment #6)
> Here is a patch that fixes this issue. The removed block was the guilty but I'm
> not sure what it was supposed to do.

It accounts for the additional height of a previous drag placeholder which is still visible (read: "animating out"); given that it is virtually impossible to trigger that case for anything but the faulty case here, removing that code looks right to me.

Please provide a more verbose commit message though.
Comment 11 Florian Müllner 2012-03-13 23:00:16 UTC
Pushed with a more verbose commit message - thanks again for the patch!
Comment 12 Allan Day 2012-03-13 23:10:08 UTC
Yeah, thanks Jean-Philippe!