Skip to content

Commit

Permalink
Two minor tweaks before release.
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcc committed Oct 12, 2024
1 parent f99c249 commit 90cd6a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import javafx.scene.Node;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.StackPane;

import static com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring.ColorComponentType;
import static com.thecoderscorner.embedcontrol.core.controlmgr.color.ControlColor.asFxColor;
Expand All @@ -35,7 +34,10 @@ public HorizontalSliderAnalogComponent(MenuComponentControl controller, Componen
public Node createComponent() {
canvas = new HorizScrollCanvas();
if(isItemEditable(item)) {
canvas.setOnMouseReleased(mouseEvent -> sendItemAbsolute());
canvas.setOnMouseReleased(mouseEvent -> {
onMouseAdjusted(mouseEvent.getX());
sendItemAbsolute();
});
canvas.setOnMouseDragged(mouseEvent -> onMouseAdjusted(mouseEvent.getX()));
}
borderPane = new BorderPane(canvas);
Expand Down
4 changes: 2 additions & 2 deletions xmlPlugins/core-remote/clientRemoteEthernet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Platform>STM32DUINO</Platform>
</SupportedPlatforms>
<Description>Control menu remotely where the device acts as a client. The device will attempt to connect to a server at a provided IP address.</Description>
<Documentation link="https://tcmenu.github.io/documentation/arduino-libraries//tc-menu/tcmenu-iot/ethernet-remote-plugin/"/>
<Documentation link="https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/tcmenu-iot/connect-to-remote-server-plugin/"/>
<RequiredLibraries/>
<ImageFile>ethernet-shield.jpg</ImageFile>

Expand All @@ -20,7 +20,7 @@
<Choice desc="Ethernet 2">ETHERNET_2</Choice>
<Choice desc="UIP Ethernet">UIP_ENC28J60</Choice>
<Choice desc="STM32Ethernet">STM32ETHERNET</Choice>
<Choice desc="ESP32 Arduino">ESP32_WIFI</Choice>
<Choice desc="ESP32/Arduino WiFi">ESP32_WIFI</Choice>
<Choice desc="ESP8266 Arduino">ESP8266_WIFI</Choice>
</Choices>
</Property>
Expand Down

0 comments on commit 90cd6a9

Please sign in to comment.