Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Fix back button #153

Merged
merged 4 commits into from
Mar 26, 2019
Merged

Fix back button #153

merged 4 commits into from
Mar 26, 2019

Conversation

Julien-laville
Copy link

No description provided.

@Julien-laville Julien-laville changed the title WIP fix back button Fix back button Mar 20, 2019
Copy link
Contributor

@amatissart amatissart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "mapboxgl-ctrl-geolocate" button has an inconsistent position when going back from roadmap preview

@@ -22,9 +20,18 @@ export default class DirectionPanel {
this.origin = null
this.destination = null
this.vehicle = this.vehicles.DRIVING
this.roadMapPanel = new RoadMapPanel()
this.roadMapPanel = new RoadMapPanel(this)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to register a callback instead of passing this ? I find a bit dangerous to let roadMapPanel handle the instance

Copy link
Contributor

@G-Ray G-Ray Mar 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, a callback to handle a close event for instance

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, i find it more elegant than register callback and let the panel handle his own close method.

@Julien-laville Julien-laville force-pushed the QMAPS-717_direction_mobile_back_action_fix branch from 3695af3 to e858956 Compare March 26, 2019 14:06
@G-Ray G-Ray merged commit ab94c7d into master Mar 26, 2019
@G-Ray G-Ray deleted the QMAPS-717_direction_mobile_back_action_fix branch March 26, 2019 14:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants