From 969984b70fa023a1a7974c3d78c5be8b6d1c6340 Mon Sep 17 00:00:00 2001 From: DlhSoft Team Date: Wed, 9 Dec 2020 12:10:19 +0200 Subject: [PATCH] Cursor improvements --- GanttChartHyperLibraryDemos/Demos/Samples/templates.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GanttChartHyperLibraryDemos/Demos/Samples/templates.js b/GanttChartHyperLibraryDemos/Demos/Samples/templates.js index 559f1b155..8c6a87b2d 100644 --- a/GanttChartHyperLibraryDemos/Demos/Samples/templates.js +++ b/GanttChartHyperLibraryDemos/Demos/Samples/templates.js @@ -148,7 +148,7 @@ function initializeGanttChartTemplates(settings, theme) { thumb.setAttribute('y', barMargin); thumb.setAttribute('width', Math.max(0, itemRight - itemLeft - 1)); thumb.setAttribute('height', barHeight); - thumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: move'); + thumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: pointer'); if (!settings.isTaskStartReadOnly) group.appendChild(thumb); var startThumb = document.createElementNS(svgns, 'rect'); @@ -156,7 +156,7 @@ function initializeGanttChartTemplates(settings, theme) { startThumb.setAttribute('y', barMargin); startThumb.setAttribute('width', 4); startThumb.setAttribute('height', barHeight); - startThumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: e-resize'); + startThumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: w-resize'); if (settings.isDraggingTaskStartEndsEnabled && !settings.isTaskStartReadOnly && settings.interaction != 'TouchEnabled') group.appendChild(startThumb); var finishThumb = document.createElementNS(svgns, 'rect'); @@ -172,7 +172,7 @@ function initializeGanttChartTemplates(settings, theme) { completedFinishThumb.setAttribute('y', barMargin); completedFinishThumb.setAttribute('width', 6); completedFinishThumb.setAttribute('height', barHeight); - completedFinishThumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: e-resize'); + completedFinishThumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: ew-resize'); if (!settings.isTaskCompletionReadOnly && settings.isTaskCompletedEffortVisible && settings.interaction != 'TouchEnabled') { group.appendChild(completedFinishThumb); var completedFinishToolTip = document.createElementNS(svgns, 'title'); @@ -343,7 +343,7 @@ function initializeGanttChartTemplates(settings, theme) { thumb.setAttribute('y', settings.barMargin); thumb.setAttribute('width', h); thumb.setAttribute('height', h); - thumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: move'); + thumb.setAttribute('style', 'fill: White; fill-opacity: 0; cursor: pointer'); group.appendChild(thumb); ganttChartView.initializeTaskDraggingThumbs(thumb, null, null, null, item, x, x, x); if (settings.areTaskDependenciesVisible && !settings.areTaskPredecessorsReadOnly && !item.isPart) {