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: 2 additions & 2 deletions src-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/LiveDevelopment/BrowserScripts/LiveDevProtocolRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@
// Get the user's current selection
const selection = window.getSelection();
var element = event.target;
if(element && element.closest('.phcode-no-lp-edit')) {
return;
}
if (element && element.hasAttribute('data-brackets-id')) {
// Check if it's a double-click for direct editing
if (event.detail === 2 && !['INPUT', 'TEXTAREA', 'SELECT'].includes(element.tagName)) {
Expand Down
6 changes: 6 additions & 0 deletions src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ function RemoteFunctions(config = {}) {
if(!LivePreviewView.isElementInspectable(element) || element.nodeType !== Node.ELEMENT_NODE) {
return false;
}
if(element && element.closest('.phcode-no-lp-edit')) {
return false;
}

// if _hoverHighlight is uninitialized, initialize it
if (!_hoverHighlight && shouldShowHighlightOnHover()) {
Expand Down Expand Up @@ -741,6 +744,9 @@ function RemoteFunctions(config = {}) {
* @param {Event} event - The click event
*/
function handleElementClick(element, event) {
if(element && element.closest('.phcode-no-lp-edit')) {
return;
}
if (!LivePreviewView.isElementInspectable(element)) {
dismissUIAndCleanupState();
return;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/default-project/en/images/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions src/assets/default-project/en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ <h1>Phoenix Code</h1>
title="Phoenix Code on YouTube"
style="max-width: 320px" />
</a>
<svg class="play-button" viewBox="0 0 200 200" alt="Play video">
<circle cx="100" cy="100" r="90" fill="#333" fill-opacity="0.6" />
<polygon points="70, 55 70, 145 145, 100" fill="white" />
</svg>
<img src="images/play.svg" class="play-button" style="width: 64px;" alt="play">
</div>
</div>
<img id="cloudLeftTop" alt="cloud" src="images/vector-top-left.png" />
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": "cd0d914edab122e76730b6d113663449ab0a473c"
"commitID": "8446ce6fa5071ed11cfba4c353a43abe732e55f1"
}
}
Loading