Ticket #1824 (closed feature: fixed)

Opened 5 years ago

Last modified 4 years ago

SelectFeature should allow panning the map when over features, without activating click method at the end of drag

Reported by: igrcic Owned by: elemoine
Priority: minor Milestone: 2.8 Release
Component: Handler.Feature Version: 2.7
Keywords: Cc:
State: Complete

Description

In addition to problem mentioned here:  http://www.nabble.com/Re%3A-SelectFeature-hover-control-interfering%09with-click-and-drag-td19365814.html#a20357439

there should be an option to block click occuring after the map is dragged (while mouse is over feature). It can be achieved by adding one more property, such as clickTolerance.

Patch supplied, tnx to Eric ;)

Attachments

clickToleranceAdded.patch Download (1.5 KB) - added by igrcic 5 years ago.
patch-1824-r9145-A0.diff Download (4.3 KB) - added by elemoine 4 years ago.
1824.patch Download (4.4 KB) - added by tschaub 4 years ago.
clickTolerance

Change History

Changed 5 years ago by igrcic

  Changed 5 years ago by igrcic

  • summary changed from SelectFeature should allow panning the map even over features, without activating click mothod at the end of drag to SelectFeature should allow panning the map when over features, without activating click method at the end of drag

  Changed 5 years ago by crschmidt

  • state set to Review

  Changed 4 years ago by crschmidt

Do we need a seperate tolerance for click/clickout? seems like they'd always be the same to me, since they're simply working around the same behavior. I'd say that this patch should be rewritten to just use the same property for both (Which simplifies the patch considerably, I think)

  Changed 4 years ago by elemoine

Chris, yes but I was concern with backward compatibility if we were to rename the property from clickoutTolerance to clickTolerance.

  Changed 4 years ago by tschaub

The clickoutTolerance is not marked API. If we're really talking about a single property, I think we should save ourselves the work of rewriting this later - and rename it now. I think a wiki page, email warning, and notes with the release would be sufficient (but I imagine others are more conservative about changing things).

follow-up: ↓ 7   Changed 4 years ago by crschmidt

I'm with Tim. Change it. (Even if it was API I might be willing to, but since it's not, I'm all over that.)

in reply to: ↑ 6   Changed 4 years ago by elemoine

  • state changed from Review to Needs More Work

Replying to crschmidt:

I'm with Tim. Change it. (Even if it was API I might be willing to, but since it's not, I'm all over that.)

agreed, i'll update the patch when i get a chance

  Changed 4 years ago by crschmidt

Eric:

I'm setting a deadline of April 1 on new non-regression patches. If there's nothing new here by then, it'll get bumped. If you don't think you can fit it in that time, please comment here and someone else may be able to grab it.

  Changed 4 years ago by crschmidt

  • owner changed from tschaub to elemoine

Changed 4 years ago by elemoine

  Changed 4 years ago by elemoine

  • state changed from Needs More Work to Review

patch-1824-r9145-A0.diff Download

New patch, with tests. Relevant tests pass on FF3. Thanks for any review.

  Changed 4 years ago by elemoine

  • owner elemoine deleted

  Changed 4 years ago by tschaub

  • owner set to tschaub
  • status changed from new to assigned

  Changed 4 years ago by elemoine

  • status changed from assigned to new

Changed 4 years ago by tschaub

clickTolerance

  Changed 4 years ago by tschaub

  • owner changed from tschaub to elemoine
  • state changed from Review to Commit

Thanks for the patch Eric. I think this looks good. My patch just corrects a typo (clicTolerance in docs) and a bit of math (square root of 8 is not 4 :).

Please commit.

  Changed 4 years ago by elemoine

  • keywords Handler.Feature, selectFeature, pan over features removed
  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [9194]) SelectFeature should allow panning the map when over features, without activating click method at the end of drag, r=tschaub (closes #1824)

Note: See TracTickets for help on using tickets.