Commit fb1a6397 authored by SergeyLuzyanin's avatar SergeyLuzyanin

notes

parent 0ecad6b4
...@@ -878,6 +878,9 @@ PreMoveState.prototype = ...@@ -878,6 +878,9 @@ PreMoveState.prototype =
{ {
return {objectId: this.majorObject.Get_Id(), cursorType: "move", bMarker: true}; return {objectId: this.majorObject.Get_Id(), cursorType: "move", bMarker: true};
} }
else{
this.onMouseUp(e, x, y, pageIndex);
}
}, },
onMouseMove: function(e, x, y, pageIndex) onMouseMove: function(e, x, y, pageIndex)
...@@ -2237,4 +2240,5 @@ AddPolyLine2State3.prototype = ...@@ -2237,4 +2240,5 @@ AddPolyLine2State3.prototype =
window['AscFormat'].SplineBezierState = SplineBezierState; window['AscFormat'].SplineBezierState = SplineBezierState;
window['AscFormat'].PolyLineAddState = PolyLineAddState; window['AscFormat'].PolyLineAddState = PolyLineAddState;
window['AscFormat'].AddPolyLine2State = AddPolyLine2State; window['AscFormat'].AddPolyLine2State = AddPolyLine2State;
window['AscFormat'].checkEmptyPlaceholderContent = checkEmptyPlaceholderContent;
})(window); })(window);
...@@ -3375,7 +3375,10 @@ CPresentation.prototype = ...@@ -3375,7 +3375,10 @@ CPresentation.prototype =
editor.sync_MouseMoveStartCallback(); editor.sync_MouseMoveStartCallback();
this.CurPage = PageIndex; this.CurPage = PageIndex;
this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.onMouseMove(e, X, Y); this.Slides[this.CurPage] && this.Slides[this.CurPage].graphicObjects.onMouseMove(e, X, Y);
var bOldFocus = this.FocusOnNotes;
this.FocusOnNotes = false;
this.UpdateCursorType(X, Y, e ); this.UpdateCursorType(X, Y, e );
this.FocusOnNotes = bOldFocus;
editor.sync_MouseMoveEndCallback(); editor.sync_MouseMoveEndCallback();
}, },
...@@ -3390,7 +3393,19 @@ CPresentation.prototype = ...@@ -3390,7 +3393,19 @@ CPresentation.prototype =
var oCurSlide = this.Slides[this.CurPage]; var oCurSlide = this.Slides[this.CurPage];
if(oCurSlide){ if(oCurSlide){
if(bFocusOnSlide){ if(bFocusOnSlide){
var bNeedRedraw = false;
if(AscFormat.checkEmptyPlaceholderContent(oCurSlide.graphicObjects.getTargetDocContent(false, false))){
bNeedRedraw = true;
}
oCurSlide.graphicObjects.resetSelection(true, false); oCurSlide.graphicObjects.resetSelection(true, false);
oCurSlide.graphicObjects.clearPreTrackObjects();
oCurSlide.graphicObjects.clearTrackObjects();
oCurSlide.graphicObjects.changeCurrentState(new AscFormat.NullState(oCurSlide.graphicObjects));
if(bNeedRedraw){
this.DrawingDocument.OnRecalculatePage(this.CurPage, oCurSlide);
this.DrawingDocument.OnEndRecalculate();
}
} }
if(oCurSlide.notesShape){ if(oCurSlide.notesShape){
oCurSlide.notesShape.selectionSetStart(e, X, Y, 0); oCurSlide.notesShape.selectionSetStart(e, X, Y, 0);
...@@ -4223,7 +4238,6 @@ CPresentation.prototype = ...@@ -4223,7 +4238,6 @@ CPresentation.prototype =
oSlide.graphicObjects.resetSelection(); oSlide.graphicObjects.resetSelection();
oSlide.graphicObjects.clearPreTrackObjects(); oSlide.graphicObjects.clearPreTrackObjects();
oSlide.graphicObjects.clearTrackObjects(); oSlide.graphicObjects.clearTrackObjects();
oSlide.graphicObjects.resetSelection();
oSlide.graphicObjects.changeCurrentState(new AscFormat.NullState(oSlide.graphicObjects)); oSlide.graphicObjects.changeCurrentState(new AscFormat.NullState(oSlide.graphicObjects));
if(oSlide.notes){ if(oSlide.notes){
this.FocusOnNotes = true; this.FocusOnNotes = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment