Open AkaShark opened 5 months ago
okay I will fix it later
I remove the picker from the settings page. When the user starts the query action I record the mouse-located screen and remove this record when the floating window closes.
This problem can be a bit complex, involving multiple screens of records and the handling of the location of the display query window.
If you're not good at solving it, I can take over later.
Oh, I now understand your issue. I didn't consider issue #442 earlier and only focused on the mouse move duration during query translation. To address this, I will record the screen when starting a query like this
- (void)startQueryText:(NSString *)text actionType:(EZActionType)actionType {
// record current screen when start query
NSScreen *current = [EZCoordinateUtils screenForPoint: [NSEvent mouseLocation]];
EZCoordinateUtils.startQueryScreen = current;
Let me try it first. I'll ask for your help if I find it difficult for me.
@tisfeng My idea is to record the screen when a word is selected for translation and display a query window on this screen. For other modes of translation, the screen will still be recorded when the query is initiated. What do you think about it?
I'm not so sure, you can try it and then we'll test it.
I'm not so sure, you can try it and then we'll test it.
okk
@AkaShark When you have time, please continue pushing this PR.
@AkaShark When you have time, please continue pushing this PR.
okay, I will try to fix it in the last few days
I'm sorry I've been a little busy lately. I'll finish this issue as soon as possible.
ok, you can schedule as you see fit.
closed https://github.com/tisfeng/Easydict/issues/442
Add a picker in the general page to display the window as auto or fixed when translation finishes.