         super.mouseDown(with: event)
     }
     
+    override func mouseUp(with event: NSEvent) {
+        let point = self.convert(event.locationInWindow, from: nil)
+        Swift.print("mouseUp:\(point)")
+        
+        super.mouseUp(with: event)
+    }
 }
 
 

    
    override func mouseDown(with event: NSEvent) {
        let point = self.convert(event.locationInWindow, from: nil)
        let charIndex = referenceView.textContainer!.textView!.characterIndexForInsertion(at: point)
        if charIndex < self.attributedStringValue.length {
            let attributes = self.attributedStringValue.attributes(at: charIndex, effectiveRange: nil)

        view.layer?.backgroundColor = NSColor.clear.cgColor

        textTweet?.allowsEditingTextAttributes = true
        // If isSelectable set to true, selectable mouse pointer on the Link appears,
        // but no mouse events occur more than once.
        textTweet?.isSelectable = false
        
        menuStackView?.detachesHiddenViews = true
        
