-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolbar positioning #201
Toolbar positioning #201
Conversation
@jywarren I still need to clean up the code should be quick, but there is another issue with it wanted to fix before... I need to play around with it a little more to decide what to do but let me know if you have any ideas!
|
This comment has been minimized.
This comment has been minimized.
jywarren replied -- Hmm, this is a tough one. What if the menu sort of "runs away" upwards if you're about to hit it? Like, we essentially make a rule that it can't be lower than any handle. Is that what you were suggesting before? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jywarren - And, this should be good to merge once we address that! Thank you!!! |
jywarren - One last thing - re: toolbar appearing off screen, we could consider either a) panning the map up so you can see it, or b) limiting how high it can go so it cannot be displayed off-screen? Just some ideas. |
This comment has been minimized.
This comment has been minimized.
Those extra 2 points I will move into the new PR as well - I will make my PR description list as usual and put them there |
This comment has been minimized.
This comment has been minimized.
There are some bugs to handle like toolbar icons, etc. but I am going to pull @rexagod's PR today and review and see what the updates are. But regardless, that is the gist of it, let me know if you want to move forward with it. We can also implement a control to let you pick which editing mode you want if you don't want dblclick to be the only way for the user to get out of the distort handles |
3d8cec2
to
74b9000
Compare
74b9000
to
c76d1e8
Compare
@jywarren @rexagod the code itself is a little messy, i will clean up! But here is the rotating toolbar. Works perfectly as seen in 1st gif. But note there is one issue with it. The gif following the first one shows this issue. It is that if you flip the image corners over its other corners (upside down) then rotate it back right side up, the rotation calculations are off. it seems to maybe think the distort handles are still upside down? 2 paths to take, both a little difficult:
Please let me know how you guys would like to proceed! Will put much effort into closing this issue this wknd so i'm not blocking any other PRs |
910f962
to
b0b6405
Compare
…erstanding of matter
@rexagod @jywarren ok I merged this it is just now the changes that fix the bugs detailed in the PR I checked over it 1000 times and there are aren't any other problems or things to approve here. I just really wanted to get it merged so that @rexagod can start rebasing his PRs on top of this (or technically, needs to rebase from master to main but rebasing everything to main should now include this) |
Hooray!!! Congrats!
…On Fri, Apr 19, 2019, 9:58 PM Sasha Boginsky ***@***.***> wrote:
@rexagod <https://github.com/rexagod> @jywarren
<https://github.com/jywarren> ok I merged this it is just now the changes
that fix the bugs detailed in the PR I checked over it 1000 times and there
are aren't any other problems or things to approve here. I just really
wanted to get it merged so that @rexagod <https://github.com/rexagod> can
start rebasing his PRs on top of this (or technically, needs to rebase from
master to main but rebasing everything to main should now include this)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5E6B2RZ4OKFDEKDVTPRJ2DDANCNFSM4HEXTFHQ>
.
|
Extension of #187
References: #166, #126, publiclab/mapknitter#300, #38, #221, publiclab/mapknitter#542
README update for
Corners
section.replace usage of private
_corners
with publicgetCorners()
add a
Corner
section that uses a new publicgetCorner(idx)
method to get the LatLng of a specific cornerAdded
bower_components
to.gitignore
Toolbar positioning all over the place - update: merged the implementation in An improvement to the placement of the toolbar. #210 and I will rebase on it to incorporate the other points referenced in this PR description
get Toolbar to continue to appear on Firefox Android and Chrome Android after deselecting and re-selecting an image get Toolbar to continue to appear on Firefox Android and Chrome Android after deselecting and re-selecting an image #38
Fixed a bug where
_toggleScale
hotkey (s) only put you in scale mode and didn't ever toggle you out of itFixed a hardcoding issue with
_showMarkers
and_hideMarkers
method - didn't account for all handles previouslyIn event of toolbar overlap with a marker can usedeclineddblclick
on the image to make the z-index of the toolbar lower than the marker.click
on the image again to set the z-index back to normal - pending approval -new handlesdeclined - status: commits for this have been reverted_lightBoxHandles
/ modelight
just for moving the image replacedistort
as default if the user doesn't explicitly pass a mode option.dblclick
on the image to rotate through the different handles available. Distort handles no longer has a toolbar when you're using it. When you return back to the light handles the toolbar places itself between the corners and we don't need to worry about overlapping corners because light corners are not meant to be dragged anyway.Pending:
popup
tocontrol
- since merging this first this should be handled from @rexagod's end where necessary