Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function RemoteFunctions(config = {}) {
// this will store the element that was clicked previously (before the new click)
// we need this so that we can remove click styling from the previous element when a new element is clicked
let previouslySelectedElement = null;
// Expose the currently selected element globally for external access
window.__current_ph_lp_selected = null;

var req, timeout;
function animateHighlight(time) {
Expand Down Expand Up @@ -710,6 +712,7 @@ function RemoteFunctions(config = {}) {
_clickHighlight.add(element, true);

previouslySelectedElement = element;
window.__current_ph_lp_selected = element;
}

function disableHoverListeners() {
Expand Down Expand Up @@ -1317,6 +1320,7 @@ function RemoteFunctions(config = {}) {
}
delete previouslySelectedElement._originalOutline;
previouslySelectedElement = null;
window.__current_ph_lp_selected = null;
}

if (config.mode === 'edit') {
Expand Down
2 changes: 1 addition & 1 deletion tracking-repos.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"phoenixPro": {
"commitID": "854053fa95b3b6d9cb2b17ca72bab14223aef000"
"commitID": "0838471fe2cc3883de47965c29999bd92de22e00"
}
}
Loading