Opened 5 years ago

Closed 5 years ago

#2898 closed bug (fixed)

Pan/Selection issue with POI vector layer in Chrome

Reported by: alexrk Owned by: tschaub
Priority: trivial Milestone: 2.11 Release
Component: general Version: 2.10
Keywords: Cc:
State: Complete

Description

In Chrome: I have a POI vector layer like in the "Dynamic POIs via a Text Layer" example: http://openlayers.org/dev/examples/dynamic-text-layer.html

If you pan the map by coincidentally clicking on a POI and afterwards moving the mouse, the map element will get selected.

Attachments (2)

poi-pan-selection-issue-chrome.JPG (29.5 KB) - added by alexrk 5 years ago.
Screenshot
2898.0.patch (439 bytes) - added by fredj 5 years ago.

Download all attachments as: .zip

Change History (12)

Changed 5 years ago by alexrk

Screenshot

comment:1 Changed 5 years ago by alexrk

  • Component changed from general to Control.SelectFeature
  • Owner set to tschaub

comment:2 Changed 5 years ago by fredj

  • State set to Awaiting User Feedback

Can you try to add:

div.olLayerDiv {
   -khtml-user-select: none;
}

in you page css and report if it fixes the issue.

comment:3 Changed 5 years ago by alexrk

Yes, that seems to fixes the problem. Thank you.

comment:4 Changed 5 years ago by fredj

  • Component changed from Control.SelectFeature to general
  • Priority changed from major to trivial
  • State Awaiting User Feedback deleted

Changed 5 years ago by fredj

comment:5 Changed 5 years ago by fredj

  • State set to Review

please review 2898.0.patch

comment:6 Changed 5 years ago by erilem

I've seen this in frameworks:

    -moz-user-select: none;
    -khtml-user-select: none;                         
    -webkit-user-select: ignore;

I guess the following can also be used

    -moz-user-select: none;                       
    -webkit-user-select: none;

I really don't know what makes sense. Do you fredj?

comment:7 Changed 5 years ago by fredj

and to add a little more confusion, the css3 options is:

  user-select: none;

http://www.w3.org/TR/2000/WD-css3-userint-20000216#user-select

comment:8 Changed 5 years ago by erilem

user-select: none; doesn't work in Chrome. fredj, I'd say just pick the one that works both in Chrome and Safari. If both work, just pick one out randomly :-)

comment:9 Changed 5 years ago by erilem

  • State changed from Review to Commit

comment:10 Changed 5 years ago by fredj

  • Resolution set to fixed
  • State changed from Commit to Complete
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.