diff --git a/app/assets/javascripts/highlightTags.js b/app/assets/javascripts/highlightTags.js index 033e6a003..ca4359111 100644 --- a/app/assets/javascripts/highlightTags.js +++ b/app/assets/javascripts/highlightTags.js @@ -20,8 +20,7 @@
`)) - .on("input", this.update) - .on("scroll", this.maintainScrollParity); + .on("input", this.update); this.initialHeight = this.$textbox.height(); @@ -45,14 +44,10 @@ $('').text(this.$textbox.val()).html().replace( tagPattern, match => `${match}` ) - ) + ); this.update = () => ( this.replacePlaceholders() && this.resize() - ) - - this.maintainScrollParity = () => this.$backgroundMaskForeground.scrollTop( - this.$textbox.scrollTop() ); };