Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

MINOR: Fix input handling in dynamic markers example. #2153

Merged
merged 3 commits into from
Mar 30, 2021

Conversation

atomicsulfate
Copy link
Collaborator

Add touch screen support.

@codecov
Copy link

codecov bot commented Mar 18, 2021

Codecov Report

Merging #2153 (7eaecfe) into master (5fe2612) will increase coverage by 0.05%.
The diff coverage is 91.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2153      +/-   ##
==========================================
+ Coverage   67.67%   67.73%   +0.05%     
==========================================
  Files         298      299       +1     
  Lines       26387    26470      +83     
  Branches     5973     5990      +17     
==========================================
+ Hits        17857    17929      +72     
- Misses       8530     8541      +11     
Impacted Files Coverage Δ
@here/harp-map-controls/lib/LongPressHandler.ts 86.74% <91.83%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5fe2612...7eaecfe. Read the comment docs.

handlePick(mapView, markersDataSource, event.pageX, event.pageY);
}
});
let longTapTimer: number | undefined;
Copy link
Contributor

@germanz germanz Mar 24, 2021

Choose a reason for hiding this comment

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

Shall we move out the long-press event related logic out of the example to make it reusable and not complicate the example logic?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done. I've adapted the LongPressHandler class to support touch events.

Add touch screen support.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate force-pushed the MINOR_FixDynamicMarkersInput branch 3 times, most recently from 234d895 to 38212d1 Compare March 25, 2021 13:51
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate merged commit 79c12d4 into master Mar 30, 2021
@atomicsulfate atomicsulfate deleted the MINOR_FixDynamicMarkersInput branch March 30, 2021 09:07
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.

None yet

2 participants