diff --git a/src/Events/touchEvent.ts b/src/Events/touchEvent.ts index 4bf60f80..8cb4aac7 100644 --- a/src/Events/touchEvent.ts +++ b/src/Events/touchEvent.ts @@ -31,7 +31,7 @@ export class TouchOnMobile { } setTimeout(() => { console.debug("time up"); - if (this.isLongClick(0)) { + if (this.originTouches.length > 0 && this.isLongClick(0)) { evt.preventDefault(); this.showcb(); this.handleCancel(evt); diff --git a/src/dataStore/repetitionItem.ts b/src/dataStore/repetitionItem.ts index 1bf2ab82..ff75f47b 100644 --- a/src/dataStore/repetitionItem.ts +++ b/src/dataStore/repetitionItem.ts @@ -122,14 +122,14 @@ export class RepetitionItem { newitvl, ); } - const dt = new Date(this.nextReview).toISOString(); - debug("review result after:", [ - this.nextReview, - dt, - (this.nextReview - Date.now()) / DateUtils.DAYS_TO_MILLIS, - result.nextReview / DateUtils.DAYS_TO_MILLIS, - newitvl, - ]); + // const dt = new Date(this.nextReview).toISOString(); + // debug("review result after:", [ + // this.nextReview, + // dt, + // (this.nextReview - Date.now()) / DateUtils.DAYS_TO_MILLIS, + // result.nextReview / DateUtils.DAYS_TO_MILLIS, + // newitvl, + // ]); } /** diff --git a/src/main.ts b/src/main.ts index b6cc0e75..41fb789e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -733,7 +733,9 @@ export default class SRPlugin extends Plugin { this.updateAndSortDueNotes(); - new Notice(t("RESPONSE_RECEIVED")); + if(!this.data.settings.reviewResponseFloatBar){ + new Notice(t("RESPONSE_RECEIVED")); + } if (this.data.settings.autoNextNote) { if (!this.lastSelectedReviewDeck) {