Skip to content

Commit 9eb61a2

Browse files
committed
fixes
1 parent bd38018 commit 9eb61a2

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/data/charts/dataset/countryData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export const countryData = {
258258
MKD: {
259259
country: 'North Macedonia',
260260
continent: 'Europe',
261-
worldAtlasName: 'North Macedonia',
261+
worldAtlasName: 'Macedonia',
262262
},
263263
MLI: { country: 'Mali', continent: 'Africa', worldAtlasName: 'Mali' },
264264
MLT: { country: 'Malta', continent: 'Europe', worldAtlasName: 'Malta' },

docs/data/charts/dataset/countryData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const countryData: Record<
173173
MDV: { country: 'Maldives', continent: 'Asia', worldAtlasName: 'Maldives' },
174174
MEX: { country: 'Mexico', continent: 'North America', worldAtlasName: 'Mexico' },
175175
MHL: { country: 'Marshall Islands', continent: 'Oceania', worldAtlasName: 'Marshall Is.' },
176-
MKD: { country: 'North Macedonia', continent: 'Europe', worldAtlasName: 'North Macedonia' },
176+
MKD: { country: 'North Macedonia', continent: 'Europe', worldAtlasName: 'Macedonia' },
177177
MLI: { country: 'Mali', continent: 'Africa', worldAtlasName: 'Mali' },
178178
MLT: { country: 'Malta', continent: 'Europe', worldAtlasName: 'Malta' },
179179
MMR: { country: 'Myanmar', continent: 'Asia', worldAtlasName: 'Myanmar' },

packages/x-charts-pro/src/internals/plugins/zoomGestures/useDragOnPressGesture.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ export function useDragOnPressGesture(
7070
const accumulated = { x: 0, y: 0 };
7171

7272
const handlePanStart = (event: PanEvent) => {
73-
isInteracting = true;
74-
handlersRef.current.onPanStart?.(event);
73+
if (!(event.detail.target as SVGElement)?.closest('[data-charts-zoom-slider]')) {
74+
isInteracting = true;
75+
handlersRef.current.onPanStart?.(event);
76+
}
7577
};
7678
const handlePanEnd = (event: PanEvent) => {
7779
isInteracting = false;

0 commit comments

Comments
 (0)