Skip to content

Commit f198b27

Browse files
author
llaske
committed
Revert back fix #333 on Shared Notes activity for incompatibility with iOS
1 parent fbd07ea commit f198b27

File tree

2 files changed

+58
-24
lines changed

2 files changed

+58
-24
lines changed

activities/SharedNotes.activity/js/activity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,10 @@ define(["sugar-web/activity/activity","sugar-web/datastore","notepalette","zoomp
672672

673673
// Event: tap on the board
674674
cy.on('tap', function(e){
675-
if (e.target === cy) {
675+
if (e.cyTarget === cy) {
676676
if (currentMode == 0) {
677677
saveAndFinishEdit();
678-
var newNode = createNode(newId(), defaultText, e.position, defaultColor);
678+
var newNode = createNode(newId(), defaultText, e.cyPosition, defaultColor);
679679
pushState({
680680
redo: {action:"create", id:newNode.id(), text: newNode.data("content"), position: {x: newNode.position().x, y: newNode.position().y}, color: defaultColor},
681681
undo: {action:"delete", id:newNode.id()}

activities/SharedNotes.activity/lib/cytoscape.min.js

Lines changed: 56 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)