Skip to content

Commit 7c42d4f

Browse files
committed
curve: add point index bug fix
1 parent 24c67a8 commit 7c42d4f

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

app/build/mojs-curve-editor.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ return /******/ (function(modules) { // webpackBootstrap
7575
/******/ }
7676
/******/
7777
/******/ var hotApplyOnUpdate = true;
78-
/******/ var hotCurrentHash = "94929f4bc804254be486"; // eslint-disable-line no-unused-vars
78+
/******/ var hotCurrentHash = "eb4b9d857ba05af5b0bb"; // eslint-disable-line no-unused-vars
7979
/******/ var hotCurrentModuleData = {};
8080
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
8181
/******/
@@ -3891,7 +3891,6 @@ return /******/ (function(modules) { // webpackBootstrap
38913891

38923892
var segment = getSegment(point, nextPoint, i);
38933893
str += segment.str;
3894-
console.log(i);
38953894
_this.segments.push({ index: i, str: segment.segmentStr });
38963895
}
38973896

@@ -3947,9 +3946,7 @@ return /******/ (function(modules) { // webpackBootstrap
39473946
// coordinates
39483947
var x = ev.offsetX,
39493948
y = ev.offsetY * _constants2.default.CURVE_PERCENT,
3950-
index = parseInt(target.getAttribute('data-index'));
3951-
3952-
console.log(index);
3949+
index = parseInt(target.getAttribute('data-index')) + 1;
39533950

39543951
_store2.default.dispatch({
39553952
type: 'POINT_ADD',

0 commit comments

Comments
 (0)