Skip to content

Commit

Permalink
Cursor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DlhSoftTeam committed Dec 9, 2020
1 parent 831c1c9 commit 969984b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GanttChartHyperLibraryDemos/Demos/Samples/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ 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');
startThumb.setAttribute('x', itemLeft - 4);
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');
Expand All @@ -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');
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 969984b

Please sign in to comment.