Commit Graph

33 Commits

Author SHA1 Message Date
John Firebaugh a231963510 Tail should appear only first time 2013-08-09 14:42:16 -07:00
John Firebaugh 98072bdd27 Use minzoom behavior in all appropriate modes
Fixes https://github.com/systemed/iD/issues/1599#issuecomment-19568483
2013-06-17 14:43:16 -07:00
John Firebaugh c68635062c Fix sidebar UI behaviors
* Restore preset search autofocus (fixes #1566)
* Should show hover in draw modes, not preset list
2013-06-03 16:28:30 -07:00
John Firebaugh 884d2d0732 Add hover indicator in sidebar 2013-05-26 14:07:10 -07:00
John Firebaugh d238e4eaeb Convert Tail to a behavior
This avoids an extra mousemove listener in base modes.
2013-05-14 17:51:24 -07:00
John Firebaugh 1641f38632 Use context.mouse() 2013-05-09 21:55:05 -07:00
John Firebaugh 08949d2fe9 Redo iD.geo.chooseIndex
It now calculates proper orthogonal projections and finds
the minimal one. Rename it iD.geo.chooseEdge and minimize
its coupling to context.

This version also copes with 0- and 1-node ways.

Fixes #1428.
2013-05-07 18:35:45 -07:00
Ansis Brammanis acdc1b3824 add nodes to all of a segment's ways
when
- dragging a node to a way
- starting a line from a way
- starting an area from a way
- drawing a way
2013-04-04 17:58:53 -04:00
Ansis Brammanis 3e75943405 block quick second click when drawing
- doubleclicking to add point doesn't zoom
- doubleclicking on last node selects way, not node

fixes #1233
2013-04-02 13:21:32 -04:00
John Firebaugh 9f5ba8342d Convert DragNode to a mode
This makes the CSS more consistent and makes fixing #953
easier. Also, dragging now clears the selection and closes
any operations menu, which is good.

There's still a minor Chrome bug: it doesn't refresh the
cursor when the .behavior-hover class is removed.
2013-03-11 15:45:27 -07:00
Ansis Brammanis 3bdae821c0 Select areas and lines after finishing them 2013-02-21 13:37:10 -05:00
John Firebaugh 88949d6624 Fix altKey behavior with multi-step drawing (fixes #803) 2013-02-18 21:14:41 -08:00
Ansis Brammanis 6a1ef84546 Usecapture when blocking click 2013-02-15 15:45:24 -05:00
Ansis Brammanis 246481ad92 Switch back to mouseup, and block following click 2013-02-06 18:53:46 -05:00
Ansis Brammanis 0acab34054 Draw click event triggered by click instead of up 2013-02-06 15:06:50 -05:00
Tom MacWright 4b76b136fa Fix tests for faux click 2013-02-05 15:58:54 -05:00
Tom MacWright 4a024651b4 Allow long clicks 2013-02-05 15:44:50 -05:00
Tom MacWright 9743fdf477 Up the radius tolerance to 12px 2013-02-05 15:41:56 -05:00
Tom MacWright 0e0ca2382e Half-second 2013-02-05 15:40:23 -05:00
Tom MacWright f65803d99f Make restriction both space and time 2013-02-05 15:39:58 -05:00
Tom MacWright 67632d638f Soft clicking. Feels pretty nice. Refs #530 2013-02-05 15:27:02 -05:00
Ansis Brammanis c8ab057f19 Remove unused midpoint code 2013-02-04 18:26:45 -05:00
Ansis Brammanis 83e241083d Remove event 2013-02-04 15:30:59 -05:00
Ansis Brammanis 4bfc91cc85 Fix dragging cursor off of edge while drawing 2013-02-04 12:34:11 -05:00
John Firebaugh fe49e8fb77 Pass around context rather than map 2013-02-01 12:40:16 -05:00
John Firebaugh 7e68e8e114 Add iD.Context
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
John Firebaugh e4c513ae87 midpoint = true -> type = 'midpoint'
Makes it more consistent with entities.
2013-01-30 16:24:33 -05:00
John Firebaugh 168a3b5e26 Fix drawing on midpoints (fixes #559) 2013-01-30 16:14:29 -05:00
John Firebaugh dbac370c71 More draw refactoring 2013-01-30 16:14:29 -05:00
John Firebaugh b37ef978f4 Snap to ways/vertices/midpoints when drawing (#240)
Also add anti-snapping behavior when option key is down.
2013-01-29 11:16:12 -05:00
Ansis Brammanis 2bd4fbe542 No draw mousemove events while mouse is down 2013-01-28 14:41:08 -05:00
John Firebaugh 0fef1a8cfd Drop -> undo 2013-01-24 18:14:40 -05:00
John Firebaugh 18c7267010 Extract Draw behavior
Fixed some bugs but introduced others.
2013-01-24 17:00:48 -05:00