1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    47
    Vote Rating
    0
    nmb1106 is on a distinguished road

      0  

    Default GridDragSource firing DnD on Scroll

    GridDragSource firing DnD on Scroll


    I have a grid full of variables, the user can drag and drop the variable from the grid to other areas in the UI. The DnD action is being fired when the user scrolls.

    I read that this was fixed in 2.2.5, so was expecting it to go away when we updated but still no luck. Here is my drag source code:

    Code:
            new GridDragSource(grid) {
                @Override
                protected void onDragStart(final DNDEvent ev)
                {
                    final ModelData m = grid.getSelectionModel().getSelectedItem();
                    if (m != null)
                    {
                        if (m instanceof ProgramVariableModel)
                        {
                            final ProgramVariableModel pvm = (ProgramVariableModel) m;
                            ev.getStatus().update("Assigning " + pvm.getName());
                            ev.setData(pvm.getName());
                        }
                        else
                        {
                            ev.setCancelled(true);
                            return;
                        }
                    }
                    else
                    {
                        ev.setCancelled(true);
                        return;
                    }
    
                }
            };

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    47
    Vote Rating
    0
    nmb1106 is on a distinguished road

      0  

    Default


    Just noticed this is only happening when scrolling via draggin on the scroll bar. How can I prevent that from firing the drag event.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi